How to update / validate a schema in a file using curl

While the docs say there are convenient ways to validate and update a graphql schema, these endpoints don’t actually exist on our dgraph cloud instance.

We are trying to setup CI/CD based validation and deployment of schema updates.

Thanks very much

Maybe you need to do as follows:

curl -X POST localhost:8080/admin/schema/validate --data-binary '@schema.graphql'

Thanks @Valdanito. That might work on a deployed version of dgraph but as it turns out the cloud instance does not actually expose those endpoints.