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

Update schema.md to include DQL #527

Open
wants to merge 1 commit into
base: release/v22.0
Choose a base branch
from

Conversation

damonfeldman
Copy link
Contributor

This topic of updating the schema only included GraphQL instructions. Added a brief note about DQL by linking to the admin/schema page.

@netlify
Copy link

netlify bot commented Mar 15, 2023

Deploy Preview for dgraph-docs-repo ready!

Name Link
🔨 Latest commit d897af2
🔍 Latest deploy log https://app.netlify.com/sites/dgraph-docs-repo/deploys/64111007d8e80c0008fa66c8
😎 Deploy Preview https://deploy-preview-527--dgraph-docs-repo.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@@ -36,3 +36,7 @@ mutation($sch: String!) {
}
}
```

## Setting a DQL Schema
Your DQL schema can be updated using ```dgraph live``` as documented at https://dgraph.io/docs/howto/importdata/live-loader/#importing-data-on-dgraph-cloud. Simply omit the -f <file> option to only upload the schema.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we change this to the API way of updating a DQL schema using the /alter endpoint, instead of using the Live Loader to upload a schema ? Since we demonstrate the /admin API for updating the GraphQL schema on this page, let's stick to the same method (via API) for DQL as well.
Also, as opposed to the Live Loader, the 'alter' endpoint allows for updating specific parts of the schema only. The Live Loader has limitations and can only be used to uploada new schema. So better to remove any content for Live Loader here from the Cloud -> Schema page.

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.

None yet

2 participants