-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Description
Experience Report
While researching on migration possibilities from a postgres based system to DGraph, I came across few limitations in DGraph.
I was using the GraphQL first approach https://graphql.dgraph.io/
Discussion thread for reference: https://twitter.com/manishrjain/status/1281730614312353792?s=20
What you wanted to do
Sequence Numbers
I wanted a field to act as a sequence number whenever a specific GraphQL type is created. User will not be allowed to create or modify this field. This field must be created whenever a In postgres I achieve it using
https://www.postgresql.org/docs/current/sql-createsequence.html
Constraints
I wanted to ensure that a specific combination of fields are unique across the GraphQL type. In postgres I achieve it using
https://www.postgresql.org/docs/current/ddl-constraints.html#DDL-CONSTRAINTS-UNIQUE-CONSTRAINTS
What you actually did
Paused my research
Why that wasn't great, with examples
This is blocking me from continuing my research for feasibility/adoption of DGraph
Any external references to support your case
NA