Any ideas why I get such error? My datamodel: ```...
# orm-help
g
Any ideas why I get such error? My datamodel:
Copy code
type User {
  id: ID! @unique
  name: String!
  username: String! @unique
  description: String!
  avatarUrl: String
  interests: [String!]!
  isApproved: Boolean @default(value: "false")
  createdAt: DateTime!
  updatedAt: DateTime!
}
Schema:
Copy code
type Mutation {
  createUser(username: String! interests: [String!]!): User!
}
Here is UserCreateinterestsInput:
Copy code
input UserCreateinterestsInput {
  set: [String!]
}
Example call of this mutation (like on the screenshot):
Copy code
mutation {
  createUser(
    username: "silencerweb"
    interests: ["frontend", "backend"]
  ) {
    id
  }
}
Seems like everything OK but I cannot understand why it throws this error.
n
Maybe:
Copy code
mutation {
  createUser(
    username: "silencerweb"
    interests: {
      set: ["frontend", "backend"]
    }
  ) {
    id
  }
}
g
@nuno aw, thank you so much! Almost correctly, I had to change my mutation to this: