Prisma Playground issue: Cannot query field on type

prisma

#1

I periodically run into an issue in the prisma playground where I run a query and retrieve a number of fields, including a few fields off of a sub-entity. About every 3-4 queries, I get an error back: "Cannot query field 'uniqueId' on type 'App'". Every other time the query executes successfully. I’ve attached the query below where you can see I am querying for id and uniqueId off of the sub-entity App.

Is there a known issue for this? Can anyone point me in the right direction?

navigationItems(where: { program: { id: "cjrce327z0slf0a35dlx8jo8u" } }) {
    id
    title
    app {
      id
      uniqueId
    }
    icon
    visible
    newTab
    itemType
    sortOrder
    subdomain
    relativePath
    customUrl
  }
}

#2

Can you share your server side code?

Also, if you are using prisma-client , make sure you are resolving sub fields properly.


#3

Turns out the problem stemmed from us running prisma on multiple nodes. When a new schema was deployed, it was only getting run on one. Once we paired down to one node, everything went back to normal.