Skip to content

Accessing client in preview (prepare) #3923

Discussion options

You must be logged in to vote
select: {
      tema: "tema",
    },

// resolves to
[{ _key: ..., _ref: ..., _type: "reference"},{ _key: ..., _ref: ..., _type: "reference"}]

But when resolving the reference like this

  tema: "tema",
  tema0: "tema.0.seksjoner",
  tema1: "tema.1.seksjoner",

//  tema resolves to
[{ _type: "doctype", seksjoner: [...]},{_type: "doctype", seksjoner: [...]}]

This works for us in this case, so i guess we hva a working solution for now.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by KenAJoh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant