github.com/maeglindeveloper/gqlgen@v0.13.1-0.20210413081235-57808b12a0a0/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      contentType: String!
    10  }
    11  
    12  "The `UploadFile` type, represents the request for uploading a file with certain payload."
    13  input UploadFile {
    14      id: Int!
    15      file: Upload!
    16  }
    17  
    18  "The `Query` type, represents all of the entry points into our object graph."
    19  type Query {
    20      empty: String!
    21  }
    22  
    23  "The `Mutation` type, represents all updates we can make to our data."
    24  type Mutation {
    25      singleUpload(file: Upload!): File!
    26      singleUploadWithPayload(req: UploadFile!): File!
    27      multipleUpload(files: [Upload!]!): [File!]!
    28      multipleUploadWithPayload(req: [UploadFile!]!): [File!]!
    29  }
    30