Hi, someone knows why it throws this error when I ...
# orm-help
m
Hi, someone knows why it throws this error when I click to play? I don't understand it because I'm sending like in another mutation that works perfectly, but in this one, is requirying me $data variable but it's defined and it's well formed, there isn't any error validating its structure. 🤔
j
line 7 has a red highlight
I don't think it's correct to capitalize GlobalConditions
m
You're right, I have seen just now, but I dont understand why, because all is filled with its autocomplete.
j
check the docs tab on the right
m
And GlobalConditions is created with
prisma introspect
without customize anything.
All the other properties are created in camelCase.
j
try it in camelCase
m
Forget it, it's about missing commas 🤦‍♂️
j
ahh true
👍
m
But I haven't seen GlobalConditions in capital letter
It should be a bug, I think..
j
¯\_(ツ)_/¯
are you using nexus?
just wondering
m
But I have searching more properties and there are some more, when they are in a relation with anoter entity, prisma expose them in capital letters.
Yes, I'm using nexus
j
cool
me too
prisma nexus
I hope it goes well
m
j
early stage
m
Here you can see more capital letters in arrays or entities from another table
Yes, it goes wonderful to modify and customize all that you want.
j
I see
did you set permissions for the resolvers?
m
No, I don't code the resolvers, this prisma server it won't be public, it will be requested through a public apollo server, checking the permissions.
Analyzing claims in a bearer
j
cool
will the server be multi-tenant?
m
The apollo one is schema stitching, combining a few apis.
with graphql-tools
j
ok
why do you need an apollo server if the prisma client is compatible with apollo client?
m
I have an api above and some custom operations in this apollo server, in addition, it's combining some services, one is prisma, other is from graphcms and so on..
j
cool