Hi all, I'm stuck on what seems like an easy probl...
# orm-help
j
Hi all, I'm stuck on what seems like an easy problem, but can't find any useful guidance searching online... I think I might be "doing it wrong". I'm trying to save an array of strings like ["one", "two", "three"] with a mutation query. My datamodel uses [String!]! and the error I get says "found not an object". Should I be using something like an enum instead?
c
I have this same issue, where I'm trying to create a new record (in my case a type Band with an array of genres:
Copy code
type Band {
...
genres: [String]
}
and it works fine directly on the Prisma API with
set
. However, when I try to do it with my graphql server, prisma-client generates this in the request:
Copy code
[ [Object: null prototype] ],
and I get a
Copy code
Expected 'BandCreategenresInput', found not an object
error. Any ideas? Sorry to ask, I've searched as much as I can through the archives here, on SO, and on the prisma docs/forum.