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

Support firestore.FieldValue.serverTimestamp() #35

Open
wwwy3y3 opened this issue Dec 26, 2018 · 0 comments
Open

Support firestore.FieldValue.serverTimestamp() #35

wwwy3y3 opened this issue Dec 26, 2018 · 0 comments
Labels
datamodel enhancement New feature or request

Comments

@wwwy3y3
Copy link
Contributor

wwwy3y3 commented Dec 26, 2018

Is your feature request related to a problem? Please describe.
We should provide a way to let developers annotate a field that tells GQLify to put firestore.FieldValue.serverTimestamp() in it when creating data.

Describe the solution you'd like

type Book @GQLifyModel(dataSource: "firestore", key: "Book") {
  id: ID! @unique @autoGen
  name: String!
  time: DateTime @autoGen(value: SERVER_TIMESTAMP)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
datamodel enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant