-
-
Save rafbgarcia/7e468a4b0872c7ce29bc22f5faf258aa to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Request: POST /api/graphql?query=mutation%20confirmOrder%20{%20order:%20confirmOrder(orderId:%201)%20{%20...%20on%20Order%20{%20id%20formattedPrice%20pending%20confirmed%20orderedAt%20confirmedAt%20stops%20{%20sequence%20instructions%20location%20{%20reference,%20line1%20}%20}%20customer%20{%20name,%20phoneNumber%20}%20motoboy%20{%20name%20}%20}%20...%20on%20Error%20{%20error%20}%20}%20} | |
** (exit) an exception was raised: | |
** (FunctionClauseError) no function clause matching in anonymous fn/2 in Api.Graphql.Type.Order.__absinthe_type__/1 | |
(api) lib/api/graphql/type/order.ex:25: anonymous fn(%{error: "Nenhum motoboy disponível"}, #Absinthe.Resolution<[acc: %{Absinthe.Middleware.Async => false, Absinthe.Middleware.Batch => %{input: [], output: %{}}}, adapter: Absinthe.Adapter.LanguageConventions, arguments: %{}, context: %{__absinthe_plug__: %{uploads: %{}}}, definition: nil, errors: [], extensions: %{}, fields_cache: %{{:mutation, []} => [%Absinthe.Blueprint.Document.Field{alias: "order", argument_data: %{order_id: 1}, arguments: [%Absinthe.Blueprint.Input.Argument{errors: [], flags: %{}, input_value: %Absinthe.Blueprint.Input.Value{data: 1, literal: %Absinthe.Blueprint.Input.Integer{errors: [], flags: %{}, schema_node: %Absinthe.Type.Scalar{__private__: [], __reference__: %{identifier: :integer, location: %{file: "/Users/rafa/natal-food/my_app_umbrella/deps/absinthe/lib/absinthe/type/built_ins/scalars.ex", line: 6}, module: Absinthe.Type.BuiltIns.Scalars}, description: "The `Int` scalar type represents non-fractional signed whole numeric values.\nInt can represent values between `-(2^53 - 1)` and `2^53 - 1` since it is\nrepresented in JSON as double-precision floating point numbers specified\nby [IEEE 754](http://en.wikipedia.org/wiki/IEEE_floating_point).", name: "Int", parse: #Function<10.45982321/1 in Absinthe.Type.BuiltIns.Scalars.parse_with/2>, serialize: #Function<9.45982321/1 in Absinthe.Type.BuiltIns.Scalars.__absinthe_type__/1>}, source_location: %Absinthe.Blueprint.Document.SourceLocation{column: nil, line: 1}, value: 1}, normalized: %Absinthe.Blueprint.Input.Integer{errors: [], flags: %{}, schema_node: %Absinthe.Type.Scalar{__private__: [], __reference__: %{identifier: :integer, location: %{file: "/Users/rafa/natal-food/my_app_umbrella/deps/absinthe/lib/absinthe/type/built_ins/scalars.ex", line: 6}, module: Absinthe.Type.BuiltIns.Scalars}, description: "The `Int` scalar type represents non-fractional signed whole numeric values.\nInt can represent values between `-(2^53 - 1)` and `2^53 - 1` since it is\nrepresented in JSON as double-precision floating point numbers specified\nby [IEEE 754](http://en.wikipedia.org/wiki/IEEE_floating_point).", name: "Int", parse: #Function<10.45982321/1 in Absinthe.Type.BuiltIns.Scalars.parse_with/2>, serialize: #Function<9.45982321/1 in Absinthe.Type.BuiltIns.Scalars.__absinthe_type__/1>}, source_location: %Absinthe.Blueprint.Document.SourceLocation{column: nil, line: 1}, value: 1}, schema_node: %Absinthe.Type.Scalar{__private__: [], __reference__: %{identifier: :integer, location: %{file: "/Users/rafa/natal-food/my_app_umbrella/deps/absinthe/lib/absinthe/type/built_ins/scalars.ex", line: 6}, module: Absinthe.Type.BuiltIns.Scalars}, description: "The `Int` scalar type represents non-fractional signed whole numeric values.\nInt can represent values between `-(2^53 - 1)` and `2^53 - 1` since it is\nrepresented in JSON as double-precision floating point numbers specified\nby [IEEE 754](http://en.wikipedia.org/wiki/IEEE_floating_point).", name: "Int", parse: #Function<10.45982321/1 in Absinthe.Type.BuiltIns.Scalars.parse_with/2>, serialize: #Function<9.45982321/1 in Absinthe.Type.BuiltIns.Scalars.__absinthe_type__/1>}}, name: "orderId", schema_node: %Absinthe.Type.Argument{__reference__: %{identifier: :order_id, location: %{file: "/Users/rafa/natal-food/my_app_umbrella/apps/api/lib/api/graphql/type/order.ex", line: 18}, module: Api.Graphql.Type.Order}, default_value: nil, deprecation: nil, description: nil, name: "order_id", type: :integer}, source_location: %Absinthe.Blueprint.Document.SourceLocation{column: nil, line: 1}, value: 1}], complexity: nil, directives: [], errors: [], flags: %{}, name: "confirmOrder", schema_node: %Absinthe.Type.Field{__private__: [], __reference__: %{identifier: :confirm_order, location: %{file: "/Users/rafa/natal-food/my_app_umbrella/apps/api/lib/api/graphql/type/order.ex", line: 17}, module: Api.Graphql.Type.Order}, args: %{order_id: %Absinthe.Type.Argument{__reference__: %{identifier: :order_id, location: %{file: "/Users/rafa/natal-food/my_app_umbrella/apps/api/lib/api/graphql/type/order.ex", line: 18}, module: Api.Graphql.Type.Order}, default_value: nil, deprecation: nil, description: nil, name: "order_id", type: :integer}}, complexity: nil, default_value: nil, deprecation: nil, description: "Get orders", identifier: :confirm_order, middleware: [{{Absinthe.Resolution, :call}, &Api.Orders.Order.confirm/2}], name: "confirm_order", type: :confirm_order_result}, selections: [%Absinthe.Blueprint.Document.Fragment.Inline{complexity: nil, directives: [], errors: [], flags: %{}, schema_node: %Absinthe.Type.Object{__private__: [], __reference__: %{identifier: :order, location: %{file: "/Users/rafa/natal-food/my_app_umbrella/apps/api/lib/api/graphql/type/order.ex", line: 31}, module: Api.Graphql.Type.Order}, description: nil, field_imports: [], fields: %{canceled_at: %Absinthe.Type.Field{__private__: [], __reference__: %{identifier: :canceled_at, location: %{file: "/Users/rafa/natal-food/my_app_umbrella/apps/api/lib/api/graphql/type/order.ex", line: 40}, module: Api.Graphql.Type.Order}, args: %{}, complexity: nil, default_value: nil, deprecation: nil, description: nil, identifier: :canceled_at, middleware: [{Absinthe.Middleware.MapGet, :canceled_at}], name: "canceled_at", type: :datetime}, confirmed: %Absinthe.Type.Field{__private__: [], __reference__: %{identifier: :confirmed, location: %{file: "/Users/rafa/natal-food/my_app_umbrella/apps/api/lib/api/graphql/type/order.ex", line: 36}, module: Api.Graphql.Type.Order}, args: %{}, complexity: nil, default_value: nil, deprecation: nil, description: nil, identifier: :confirmed, middleware: [{Absinthe.Resolution, &Api.Orders.Order.confirmed/3}], name: "confirmed", type: :boolean}, confirmed_at: %Absinthe.Type.Field{__private__: [], __reference__: %{identifier: :confirmed_at, location: %{file: "/Users/rafa/natal-food/my_app_umbrella/apps/api/lib/api/graphql/type/order.ex", line: 39}, module: Api.Graphql.Type.Order}, args: %{}, complexity: nil, default_value: nil, deprecation: nil, description: nil, identifier: :confirmed_at, middleware: [{Absinthe.Middleware.MapGet, :confirmed_at}], name: "confirmed_at", type: :datetime}, customer: %Absinthe.Type.Field{__private__: [], __reference__: %{identifier: :customer, location: %{file: "/Users/rafa/natal-food/my_app_umbrella/apps/api/lib/api/graphql/type/order.ex", line: 43}, module: Api.Graphql.Type.Order}, args: %{}, complexity: nil, default_value: nil, deprecation: nil, description: nil, identifier: :customer, middleware: [{Absinthe.Resolution, #Function<1.46230921/3 in Absinthe.Ecto.assoc/4>}], name: "customer", type: :customer}, finished_at: %Absinthe.Type.Field{__private__: [], __reference__: %{identifier: :finished_at, location: %{file: "/Users/rafa/natal-food/my_app_umbrella/apps/api/lib/api/graphql/type/order.ex", line: 41}, module: Api.Graphql.Type.Order}, args: %{}, complexity: nil, default_value: nil, deprecation: nil, description: nil, identifier: :finished_at, middleware: [{Absinthe.Middleware.MapGet, :finished_at}], name: "finished_at", type: :datetime}, formatted_price: %Absinthe.Type.Field{__private__: [], __reference__: %{identifier: :formatted_price, location: %{file: "/Users/rafa/natal-food/my_app_umbrella/apps/api/lib/api/graphql/type/order.ex", line: 34}, module: Api.Graphql.Type.Order}, args: %{}, complexity: nil, default_value: nil, deprecation: nil, description: nil, identifier: :f (truncated) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment