Anyone who have had problems with the error messag...
# orm-help
a
Anyone who have had problems with the error message "Cannot return null for non-nullable field", that can figure why I am getting it here?: https://www.prisma.io/forum/t/cannot-return-null-for-non-nullable-field/3476
a
I believe you are requesting a property that was not returned from your query. You could inspect what exactly you're returning to be sure
a
@awoyotoyin, thanks! You made me look into my schema.graphql and where my mutation is defined like this:
Copy code
connectServiceProviderToStripe(
    id: ID!
    authorizationCode: String!
  ): ServiceProvider!
But in the top of the file, I apparently am not importing ServicerProvider correctly:
# import SupportedCountries, TimeFormat, Unit, SupportedCurrencies ServiceProvider from "./generated/prisma.graphql"
There is a missing comma!
a
👍 Glad that helped
a
Hmm, unfortunately I'm still getting the error and I am still not sure why :I