Skip to content

Create Collection and Attributes in Database#90

Open
nileshdhakad18 wants to merge 1 commit intoappwrite:masterfrom
nileshdhakad18:master
Open

Create Collection and Attributes in Database#90
nileshdhakad18 wants to merge 1 commit intoappwrite:masterfrom
nileshdhakad18:master

Conversation

@nileshdhakad18
Copy link

What does this PR do?

This pull request introduces a script to interact with the Appwrite API using Node.js. The script accomplishes the following tasks:

  1. Initializes the Appwrite SDK with project details, including self-signed certificate handling.
  2. Creates a new collection named "tasks" with specified read and write permissions.
  3. Adds a boolean attribute "completed" and a string attribute "text" to the newly created collection.

Test Plan

To verify the changes, follow these steps:

  1. Replace the placeholder values in the config object with actual Appwrite project details.
  2. Run the script using Node.js.
  3. Verify that a new collection named "tasks" has been created with the specified attributes.

Related PRs and Issues

N/A

Have you read the Contributing Guidelines on issues?

Yes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant