Prisma1: Make createdAt, updatedAt optional

Created on 8 Sep 2017  路  1Comment  路  Source: prisma/prisma1

Issue by mavilein
_Thursday Sep 07, 2017 at 11:47 GMT_
_Originally opened as https://github.com/graphcool/api-bugs/issues/257_


  • the user does not have to specify in the types.graphql file
  • it is still created in the background in the database
  • ideally it would not be visible in the Client API

So maybe we have to add an isVisible flag to our Fields data structure.

Most helpful comment

This is now fixed 馃檪

The field is not there from the start, once it's added, the values are there. It can be removed and added, and the values will still be there.

fields need to be createdAt: DateTime! and updatedAt: DateTime!.

>All comments

This is now fixed 馃檪

The field is not there from the start, once it's added, the values are there. It can be removed and added, and the values will still be there.

fields need to be createdAt: DateTime! and updatedAt: DateTime!.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

nikolasburk picture nikolasburk  路  3Comments

AlessandroAnnini picture AlessandroAnnini  路  3Comments

hoodsy picture hoodsy  路  3Comments

Fi1osof picture Fi1osof  路  3Comments

schickling picture schickling  路  3Comments