lib/ecoportal/api/graphql.rb in ecoportal-api-graphql-0.1.10 vs lib/ecoportal/api/graphql.rb in ecoportal-api-graphql-0.1.11

- old
+ new

@@ -23,10 +23,21 @@ end def currentOrganization currentOrganizationClass end + + def createContractorEntity(input:, &block) + createContractorEntityMutation.query(input: input, &block) + end + + private + + def createContractorEntityMutation + Ecoportal::API::GraphQL::Mutation::CreateContractorEntity.new(client) + end + end end end require 'ecoportal/api/graphql/helpers' @@ -35,5 +46,6 @@ require 'ecoportal/api/graphql/connection' require 'ecoportal/api/graphql/payload' require 'ecoportal/api/graphql/input' require 'ecoportal/api/graphql/fragment' require 'ecoportal/api/graphql/query' +require 'ecoportal/api/graphql/mutation'