asset.api.graphql 964 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. type Query {
  2. "Get a list of Assets"
  3. assets(options: AssetListOptions): AssetList!
  4. "Get a single Asset by id"
  5. asset(id: ID!): Asset
  6. }
  7. type Mutation {
  8. "Create a new Asset"
  9. createAssets(input: [CreateAssetInput!]!): [CreateAssetResult!]!
  10. "Update an existing Asset"
  11. updateAsset(input: UpdateAssetInput!): Asset!
  12. "Delete an Asset"
  13. deleteAsset(id: ID!, force: Boolean): DeletionResponse!
  14. "Delete multiple Assets"
  15. deleteAssets(ids: [ID!]!, force: Boolean): DeletionResponse!
  16. }
  17. type MimeTypeError implements ErrorResult {
  18. errorCode: ErrorCode!
  19. message: String!
  20. fileName: String!
  21. mimeType: String!
  22. }
  23. union CreateAssetResult = Asset | MimeTypeError
  24. # generated by generateListOptions function
  25. input AssetListOptions
  26. input CreateAssetInput {
  27. file: Upload!
  28. }
  29. input CoordinateInput {
  30. x: Float!
  31. y: Float!
  32. }
  33. input UpdateAssetInput {
  34. id: ID!
  35. name: String
  36. focalPoint: CoordinateInput
  37. }