so... I can't have empty strings as a default (it ...
# prisma-whats-new
m
so... I can't have empty strings as a default (it converts to null) and I can't filter by whether a field is null because Apollo won't let me? Ugh catch 22 😞
n
what do you mena with you can't have empty strings as default? that would surprise me.
m
when you use fieldname: String @defaultValue(value: "") it converts the value to null
n
hmm
can you reproduce this in the Playground?
Apollo might send the
fieldname
as
null
if you include it but don't provide a value
m
actually, this is odd
its only on new values, if i add a field on to a schema
n
you need to provide a
@migrationValue
that's different to a default value
m
ahhh.
ok
m
yup! that did the trick
🎉 1
you should do this for a living. lol
n
what?
m
sarcasm
n
😂 I was about to say
m
you're good with graphql 🙂
n
by the way, I have a very effective sarcasm shield
m
one day, I will get there
💯 1
haha