AppsyncServerlessCMS icon indicating copy to clipboard operation
AppsyncServerlessCMS copied to clipboard

Question about identifiers

Open Ricardo1980 opened this issue 5 years ago • 0 comments

Hello,

Here https://github.com/yai333/AppsyncServerlessCMS/blob/master/nodejs/handler.js#L33 I see that in your database you use auto increment integers for the primary keys.

And here https://github.com/yai333/AppsyncServerlessCMS/blob/master/nodejs/schema.graphql#L14 I see you use "id: Int", intead of "id: ID!" or "id: ID". Is there any reason why you are using Int instead of ID? I thought that for identifiers GraphQL had ID type. Should be this field mandatory? (with !)

Thanks a lot!

Ricardo1980 avatar Dec 07 '19 21:12 Ricardo1980