Skip to content

Instantly share code, notes, and snippets.

@ssomnoremac
Created August 14, 2017 16:27
Show Gist options
  • Save ssomnoremac/c47de61994abb5666fcabf4716e7620b to your computer and use it in GitHub Desktop.
Save ssomnoremac/c47de61994abb5666fcabf4716e7620b to your computer and use it in GitHub Desktop.
(FunctionClauseError) no function clause matching in Absinthe.Resolution.Projector.project/5
(absinthe) lib/absinthe/resolution/projector.ex:5: Absinthe.Resolution.Projector.project([%Absinthe.Blueprint.Document.Field{alias: nil, argument_data: %{}, arguments: [], complexity: nil, directives: [], errors: [], flags: %{}, name: "__typename", schema_node: %Absinthe.Type.Field{__private__: [], __reference__: nil, args: %{}, complexity: nil, default_value: nil, deprecation: nil, description: "The name of the object type currently being queried.", identifier: nil, middleware: [{{Absinthe.Resolution, :call}, #Function<0.862031/2 in Absinthe.Introspection.Field.meta/1>}], name: "__typename", type: :string}, selections: [], source_location: %Absinthe.Blueprint.Document.SourceLocation{column: nil, line: 3}, type_conditions: []}], nil, [%Absinthe.Blueprint.Document.Field{alias: nil, argument_data: %{id: "U2hpZnQ6MTIzZTQ1NjctZTg5Yi0xMmQzLWE0NTYtNDI2NjU1NDQwMDAw"}, arguments: [%Absinthe.Blueprint.Input.Argument{errors: [], flags: %{}, input_value: %Absinthe.Blueprint.Input.Value{data: "U2hpZnQ6MTIzZTQ1NjctZTg5Yi0xMmQzLWE0NTYtNDI2NjU1NDQwMDAw", literal: %Absinthe.Blueprint.Input.String{errors: [], flags: %{}, schema_node: %Absinthe.Type.NonNull{of_type: %Absinthe.Type.Scalar{__private__: [], __reference__: %{identifier: :id, location: %{file: "/Users/syrup/Workspace/hyr/hyrbak/deps/absinthe/lib/absinthe/type/built_ins/scalars.ex", line: 39}, module: Absinthe.Type.BuiltIns.Scalars}, description: "The `ID` scalar type represents a unique identifier, often used to\nrefetch an object or as key for a cache. The ID type appears in a JSON\nresponse as a String; however, it is not intended to be human-readable.\nWhen expected as an input type, any string (such as `\"4\"`) or integer\n(such as `4`) input value will be accepted as an ID.", name: "ID", parse: #Function<10.129415150/1 in Absinthe.Type.BuiltIns.Scalars.parse_with/2>, serialize: #Function<7.129415150/1 in Absinthe.Type.BuiltIns.Scalars.__absinthe_type__/1>}}, source_location: %Absinthe.Blueprint.Document.SourceLocation{column: nil, line: 2}, value: "U2hpZnQ6MTIzZTQ1NjctZTg5Yi0xMmQzLWE0NTYtNDI2NjU1NDQwMDAw"}, normalized: %Absinthe.Blueprint.Input.String{errors: [], flags: %{}, schema_node: %Absinthe.Type.NonNull{of_type: %Absinthe.Type.Scalar{__private__: [], __reference__: %{identifier: :id, location: %{file: "/Users/syrup/Workspace/hyr/hyrbak/deps/absinthe/lib/absinthe/type/built_ins/scalars.ex", line: 39}, module: Absinthe.Type.BuiltIns.Scalars}, description: "The `ID` scalar type represents a unique identifier, often used to\nrefetch an object or as key for a cache. The ID type appears in a JSON\nresponse as a String; however, it is not intended to be human-readable.\nWhen expected as an input type, any string (such as `\"4\"`) or integer\n(such as `4`) input value will be accepted as an ID.", name: "ID", parse: #Function<10.129415150/1 in Absinthe.Type.BuiltIns.Scalars.parse_with/2>, serialize: #Function<7.129415150/1 in Absinthe.Type.BuiltIns.Scalars.__absinthe_type__/1>}}, source_location: %Absinthe.Blueprint.Document.SourceLocation{column: nil, line: 2}, value: "U2hpZnQ6MTIzZTQ1NjctZTg5Yi0xMmQzLWE0NTYtNDI2NjU1NDQwMDAw"}, schema_node: %Absinthe.Type.NonNull{of_type: %Absinthe.Type.Scalar{__private__: [], __reference__: %{identifier: :id, location: %{file: "/Users/syrup/Workspace/hyr/hyrbak/deps/absinthe/lib/absinthe/type/built_ins/scalars.ex", line: 39}, module: Absinthe.Type.BuiltIns.Scalars}, description: "The `ID` scalar type represents a unique identifier, often used to\nrefetch an object or as key for a cache. The ID type appears in a JSON\nresponse as a String; however, it is not intended to be human-readable.\nWhen expected as an input type, any string (such as `\"4\"`) or integer\n(such as `4`) input value will be accepted as an ID.", name: "ID", parse: #Function<10.129415150/1 in Absinthe.Type.BuiltIns.Scalars.parse_with/2>, serialize: #Function<7.129415150/1 in Absinthe.Type.BuiltIns.Scalars.__absinthe_type__/1>}}}, name: "id", schema_node: %Absinthe.Type.Argument{__reference__: %{identifier: :id, location: %{file: "/Users/syrup/Workspace/hyr/hyrbak/web/schema.ex", line: 0}, module: Hyrbak.Schema}, default_value: nil, deprecation: nil, description: "The id of an object.", name: "id", type: %Absinthe.Type.NonNull{of_type: :id}}, source_location: %Absinthe.Blueprint.Document.SourceLocation{column: nil, line: 2}, value: "U2hpZnQ6MTIzZTQ1NjctZTg5Yi0xMmQzLWE0NTYtNDI2NjU1NDQwMDAw"}], complexity: nil, directives: [], errors: [], flags: %{}, name: "node", schema_node: %Absinthe.Type.Field{__private__: [], __reference__: %{identifier: :node, location: %{file: "/Users/syrup/Workspace/hyr/hyrbak/web/schema.ex", line: 28}, module: Hyrbak.Schema}, args: %{id: %Absinthe.Type.Argument{__reference__: %{identifier: :id, location: %{file: "/Users/syrup/Workspace/hyr/hyrbak/web/schema.ex", line: 0}, module: Hyrbak.Schema}, default_value: nil, deprecation: nil, description: "The id of an object.", name: "id", type: %Absinthe.Type.NonNull{of_type: :id}}}, complexity: nil, default_value: nil, deprecation: nil, description: "Fetches an object given its ID", identifier: :node, middleware: [{{Absinthe.Relay.Node, :resolve_with_global_id}, []}, {{Absinthe.Resolution, :call}, #Function<2.9353868/2 in Hyrbak.Schema.__absinthe_type__/1>}], name: "node", type: :node}, selections: [%Absinthe.Blueprint.Document.Field{alias: nil, argument_data: %{}, arguments: [], complexity: nil, directives: [], errors: [], flags: %{}, name: "__typename", schema_node: %Absinthe.Type.Field{__private__: [], __reference__: nil, args: %{}, complexity: nil, default_value: nil, deprecation: nil, description: "The name of the object type currently being queried.", identifier: nil, middleware: [{{Absinthe.Resolution, :call}, #Function<0.862031/2 in Absinthe.Introspection.Field.meta/1>}], name: "__typename", type: :string}, selections: [], source_location: %Absinthe.Blueprint.Document.SourceLocation{column: nil, line: 3}, type_conditions: []}], source_location: %Absinthe.Blueprint.Document.SourceLocation{column: nil, line: 2}, type_conditions: []}, %Absinthe.Blueprint.Document.Operation{complexity: nil, current: true, directives: [], errors: [], flags: %{}, fragment_uses: [], name: nil, provided_values: %{}, schema_node: %Absinthe.Type.Object{__private__: [], __reference__: %{identifier: :query, location: %{file: "/Users/syrup/Workspace/hyr/hyrbak/web/schema.ex", line: 27}, module: Hyrbak.Schema}, description: nil, field_imports: [], fields: %{login: %Absinthe.Type.Field{__private__: [], __reference__: %{identifier: :login, location: %{file: "/Users/syrup/Workspace/hyr/hyrbak/web/schema.ex", line: 37}, module: Hyrbak.Schema}, args: %{id: %Absinthe.Type.Argument{__reference__: %{identifier: :id, location: %{file: "/Users/syrup/Workspace/hyr/hyrbak/web/schema.ex", line: 38}, module: Hyrbak.Schema}, default_value: nil, deprecation: nil, description: nil, name: "id", type: %Absinthe.Type.NonNull{of_type: :id}}}, complexity: nil, default_value: nil, deprecation: nil, description: nil, identifier: :login, middleware: [{{Absinthe.Resolution, :call}, &Hyrbak.Resolver.Login.find/2}], name: "login", type: :login}, node: %Absinthe.Type.Field{__private__: [], __reference__: %{identifier: :node, location: %{file: "/Users/syrup/Workspace/hyr/hyrbak/web/schema.ex", line: 28}, module: Hyrbak.Schema}, args: %{id: %Absinthe.Type.Argument{__reference__: %{identifier: :id, location: %{file: "/Users/syrup/Workspace/hyr/hyrbak/web/schema.ex", line: 0}, module: Hyrbak.Schema}, default_value: nil, deprecation: nil, description: "The id of an object.", name: "id", type: %Absinthe.Type.NonNull{of_type: :id}}}, complexity: nil, default_value: nil, deprecation: nil, description: "Fetches an object given its ID", identifier: :node, middleware: [{{Absinthe.Relay.Node, :resolve_with_global_id}, []}, {{Absinthe.Resolution, :c (truncated)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment