m
w
Hey, just use
arg()
with
Environment
as type.
stringArg
,
intArg
etc are just shortcut for not precising the type. https://github.com/prisma/nexus/blob/9af376746b99ec06a8c92545875d09fc31c4c5bd/examples/star-wars/src/graphql/query.ts#L11-L17
👌 1
m
Thanks @weakky!
@weakky And is possible to overwrite a string property from SDL and expose it as enum as well?