Lotafak
01/04/2018, 3:22 PMtype User {
id: ID! @unique
createdAt: DateTime!
updatedAt: DateTime!
email: String @unique
password: String
facebookUserId: String @unique
firstName: String
lastName: String
accounts: [Account!]! @relation(name: "UsersAccount")
}
sometimes I receive error: Error: GraphQL error: A unique constraint would be violated on User. Details: Field name = email
even though given email address doesn’t exist in database. What’s more interesting, user is created! So I receive error, then I’m quering to display all the users and see the user was created. What is going on?Lotafak
01/05/2018, 9:24 AMnilan
01/05/2018, 10:37 PM