Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 
 
 
 
 

45 строки
1.3 KiB

  1. # Copyright © Magento, Inc. All rights reserved.
  2. # See COPYING.txt for license details.
  3. type Query {
  4. testItem(id: Int!) : TestItemOutput @resolver(class: "Magento\\TestModuleGraphQlQuery\\Model\\Resolver\\Item")
  5. testUnion: TestUnion @resolver(class: "Magento\\TestModuleGraphQlQuery\\Model\\Resolver\\TestUnion")
  6. testQueryWithNestedMandatoryInputArguments(input: TestInputQueryWithMandatoryArgumentsInput): TestItemOutput
  7. testQueryWithTopLevelMandatoryInputArguments(topLevelArgument: String!): TestItemOutput
  8. }
  9. type Mutation {
  10. testItem(id: Int!) : MutationItemOutput @resolver(class: "Magento\\TestModuleGraphQlQuery\\Model\\Resolver\\Item")
  11. }
  12. type TestItemOutput {
  13. item_id: Int
  14. name: String
  15. }
  16. type MutationItemOutput {
  17. item_id: Int
  18. name: String
  19. }
  20. union TestUnion @doc(description: "some kind of union") @typeResolver(class: "Magento\\TestModuleGraphQlQuery\\Model\\Resolver\\UnionTypeResolver") =
  21. TypeCustom1 | TypeCustom2
  22. type TypeCustom1 {
  23. custom_name1: String
  24. }
  25. type TypeCustom2 {
  26. custom_name2: String
  27. }
  28. input TestInputQueryWithMandatoryArgumentsInput {
  29. query_id: String!
  30. query_items: [QueryWithMandatoryArgumentsInput!]!
  31. }
  32. input QueryWithMandatoryArgumentsInput {
  33. query_item_id: Int!
  34. quantity: Float
  35. }