Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create Collection and Attributes in Database #90

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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