sanity-shopify-studio icon indicating copy to clipboard operation
sanity-shopify-studio copied to clipboard

Encountered anonymous inline object

Open zamson opened this issue 2 years ago • 1 comments

Getting loads of errors with this data model when deploying GraphQL

Error: Encountered anonymous inline object "x" for field/type "y". To use this field with GraphQL you will need to create a top-level schema type for it. See https://docs.sanity.io/help/schema-lift-anonymous-object-type

I'm a Sanity beginner but it seems to me that some of the objects that it errors are already top level. For instance, all "module.x"

zamson avatar Sep 16 '22 10:09 zamson

Having the same issue when deploying GraphQL and was also confused as it seems they are already top level. Did you end up finding a solution for this?

patmason avatar Apr 07 '23 01:04 patmason