import { list } from “nexus”
t.field(“product”, { type: list(“Product”) }
Note: depending on which type you choose, you might need to write your own resolver for the type.
Some suggestions
-
Use graphql playground or Apollo sandbox to look at the available types (Studio)
-
Look at strapi source code + nexus docs for more examples.