My fav part of it is automatic graphql schemas. I ...
# general-discussions
d
My fav part of it is automatic graphql schemas. I just send them something like this:
Copy code
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