I'm trying to add a `scopes` field to my user obje...
# orm-help
a
I'm trying to add a
scopes
field to my user object, so that I can have permission scopes on fields and mutators like "read:users" or "write:media" or things like that using custom directives (
@hasScope(scope: ["read:users"])
. I've tried to add a
scopes: [String]!
field to my
datamodel.prisma
field, and when I try to
prisma deploy
it gets stuck with an error that ✖️ Valid values for the strategy argument of
@scalarList
are: RELATION. which I assume means that I can't have lists of scalars like `String`s in my Prisma schema for some reason. Does anybody know of a good way to work around this limitation?
a
tried that, no dice 😕
b
very weird, because it works with @Bruce He
b
My friend told me the proposed solution above won’t work for my project because my project used nexus-prisma. The solution above might works for nexus only. Do you guys have any idea what Upload type available for nexus-prisma? Thanks😀