# Query sever timestamps in GraphQL?

**URL:** <https://discuss.dgraph.io/t/query-sever-timestamps-in-graphql/7091>\
**Category:** GraphQL\
**Tags:** status:accepted, kind:feature\
**Created:** [June 9, 2020, 12:36pm UTC](https://discuss.dgraph.io/t/query-sever-timestamps-in-graphql/7091 "2020-06-09T12:36:25Z")\
**Posts on this page:** 1\
**Showing post:** 24

<div class="post-metadata">

**Author:** ![maaft](https://avatars.discourse-cdn.com/v4/letter/m/4af34b/32.png) [@maaft](https://discuss.dgraph.io/u/maaft)\
**Post date:** [January 21, 2021, 3:58pm UTC](https://discuss.dgraph.io/t/query-sever-timestamps-in-graphql/7091/24 "2021-01-21T15:58:56Z")

</div>

> [@amaster507](#):
>
> then the rewriting process becomes more complex with needing then to decide when not to add in the automated predicate if it is supplied by the user.

Sure - the implementation would be a bit more complex, but is this really a deciding criterion?

> [@amaster507](#):
>
> This would get a timestamp feature into production quickly which could then be iterated upon for feature enhancements later.

I’m fine with this approach. But I fear that once it is implemented immutable-only, there won’t be a reiteration for a loooooong time given the vast amount of (important) feature- and bug-requests currently.

> [@amaster507](#):
>
> Right now there are no good implementation that I have found for offline GraphQL.

We didn’t find any either, that’s why we build it from scratch. We have one dgraph database running on the client (+ electron react app) and one dgraph database on our server. The user can work offline, all data is stored in his dgraph instance and when he goes online, we synchronize both databases using GQL mutations. And I can tell you - it’s working just fine and isn’t much effort either when using code-generation. And that’s why we would need mutable timestamps. When the user creates a post offline on date XXX, the same data should show online on that post.

> [@amaster507](#):
>
> server\<-\>server syncs that needs to set these timestamps, that should be done using DQL live imports and rdf streams IMO.

I’d also happily implement the synchronization with DQL if you think that this is better suited. Can you point me to some ressources where I can learn how to use “DQL live imports and rdf streams” for server\<-\>server synchronization purposes?

---

_[View the full topic](https://discuss.dgraph.io/t/query-sever-timestamps-in-graphql/7091)._
