#(new to prisma) Argument is missing? (it's not)

16 messages · Page 1 of 1 (latest)

sleek shale
#

prisma 6.0.1

frozen perch
#

Is sexo parameter optional in your use case?
If yes, can you change the type from String to String? in your schema file?

What error do you get from postman?

sleek shale
#

would I need to make a new migration

#

alright I put it optional and it sends null

#

(even tho I put a text)

sleek shale
#

im using bruno not postman

#

help please💀

frozen perch
#

The error suggests that you need to pass sexo argument, but it is not being received. What happens if you not pass null in the sexo argument?

sleek shale
#

yeah my bad for this screenshot, i passed multiple values, tried with string and int

#

always the same error

#

it just doesnt detect whatever i pass

frozen perch
#

Is your repository open source? Anyway I can try to run it and check?

sleek shale
#

i fixed it

#

post request was missing the sexo field