Skip to content

Instantly share code, notes, and snippets.

@0xAnon101
Created June 27, 2022 03:30
Show Gist options
  • Select an option

  • Save 0xAnon101/bcf054c12096b22b4d06678f5aa4bd74 to your computer and use it in GitHub Desktop.

Select an option

Save 0xAnon101/bcf054c12096b22b4d06678f5aa4bd74 to your computer and use it in GitHub Desktop.
Schema graph
# fulltext query: searchable keywords
type _Schema_
@fulltext(
name: "apeFilter"
language: en
algorithm: rank
include: [
{
entity: "BoredApeToken"
fields: [{ name: "eyes" }, { name: "background" }]
}
]
)
type BoredApeToken @entity {
id: ID!
# image info
tokenID: BigInt!
contentURI: String!
imageURI: String
baseURI: String
createdAtTimestamp: BigInt!
# traits
eyes: String
background: String
hat: String
mouth: String
clothes: String
fur: String
earring: String
# relation
owner: BoredApeUser!
}
type BoredApeUser @entity {
id: ID!
tokens: [BoredApeToken!]! @derivedFrom(field: "owner")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment