DEV Community

Discussion on: DGraph Advanced Data Modeling: Part 1 - Timestamps

Collapse
 
jurijurka profile image
Juri Jurka

"but then you have to lock all adds and updates on your schema, which is not a good thing" what exactly do you mean with that? that the data added through DQL mutations is not accessable via GraphQL (because of that whole transpilation thing)? or do you mean something different?

Collapse
 
jdgamble555 profile image
Jonathan Gamble

If you create a custom mutation, which is different than using a lambda webhook -- what this article is talking about --, then a person could still add data through add / update unless you prevent them from using the regular graphql endpoint by adding the NEVER / ALWAYS rule above. Basically your regular graphql endpoint is accessible to add / update data without the timestamp, so you must "lock it" from allowing people to add data that way.