github.com/fortexxx/gqlgen@v0.10.3-0.20191216030626-ca5ea8b21ead/example/fileupload/schema.graphql (about)

     1  "The `Upload` scalar type represents a multipart file upload."
     2  scalar Upload
     3  
     4  "The `File` type, represents the response of uploading a file."
     5  type File {
     6      id: Int!
     7      name: String!
     8      content: String!
     9  }
    10  
    11  "The `UploadFile` type, represents the request for uploading a file with certain payload."
    12  input UploadFile {
    13      id: Int!
    14      file: Upload!
    15  }
    16  
    17  "The `Query` type, represents all of the entry points into our object graph."
    18  type Query {
    19      empty: String!
    20  }
    21  
    22  "The `Mutation` type, represents all updates we can make to our data."
    23  type Mutation {
    24      singleUpload(file: Upload!): File!
    25      singleUploadWithPayload(req: UploadFile!): File!
    26      multipleUpload(files: [Upload!]!): [File!]!
    27      multipleUploadWithPayload(req: [UploadFile!]!): [File!]!
    28  }
    29