https://discord.cloudflare.com logo
Title
d

Djkáťo

05/25/2023, 12:21 AM
My fav part of it is automatic graphql schemas. I just send them something like this:
graphql
type Tag{
    name: String!
    photos: [Photo] @relation
}

type Photo {
    name: String!
    description: String!
    cgtraderLink: String
    tags: [Tag!] @relation
}

type Query {
    getPhotos: [Photo!]
    getTags:[Tag!]
    getPhotoByName(name: String!): Photo!
    findTagByName(name: String!): Tag!
    findPhotosByTags(name: [String!]!):[Photo!]! @resolver(name:"find_photos_by_tags")
}
And it generates everything for me