Skip to content
This repository has been archived by the owner on Apr 9, 2024. It is now read-only.

Encountered anonymous inline object #8

Open
zamson opened this issue Sep 16, 2022 · 1 comment
Open

Encountered anonymous inline object #8

zamson opened this issue Sep 16, 2022 · 1 comment

Comments

@zamson
Copy link

zamson commented Sep 16, 2022

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"

@patmason
Copy link

patmason commented Apr 7, 2023

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?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants