A defect is a rule a schema breaks, reported at the place in the schema the author edits to fix it. The build, the editor and the MCP server read the same defects, so a code you meet in one is the code you meet in the others, and this page is where each code is explained.

Reading an entry

Each entry is headed by its code, the name the build’s message and the MCP server give it.

  • The first paragraph is the rule, stated once. A message quotes it, followed by a detail in parentheses naming what this occurrence is about: a table, a type, a parameter.

  • Severity says whether the build stops. An error stops validate and generate before anything is generated, and dev reports it and keeps running. A warning is shown and logged and stops nothing.

  • Basis says what the verdict rests on, and so what you do about it: change the schema for SPECIFICATION and GRAPHITRON, or work around graphitron for UNSUPPORTED.

  • Editor code is the code the editor shows beside the message and filters by.

  • What follows is the fix guidance: what reaches the defect, and what to write instead. Guidance not yet reviewed by the maintainers is marked as best effort: it is drawn from the rule and its tests, and may be incomplete.

A deferral, a defect whose basis is UNSUPPORTED, is a schema graphitron recognises and does not generate yet. The schema is not wrong, so the editor and the MCP server mark it as not actionable, and every deferral says what to write instead. Either change the shape to what its entry suggests, or keep it and revisit it when graphitron learns it; a deferral goes away, with its code, when the shape is generated.

The classification walk’s own rejections, the [author-error], [invalid-schema] and [deferred] lines that carry no code from this page, are described in the diagnostics glossary.

Errors in graphitron’s directives

Graphitron’s directives give the schema no meaning as written. Changing the schema removes the defect.

ARGMAPPING_KEY_COLUMN_UNRESOLVED

An argMapping path past a @nodeId, or stopping on one at a @routine parameter, which takes one value, reaches no one key column of its node: the key has several columns and the path names none, the name it gives is no key column, or the id is an interface's or a union's, one key per member. Name a key column after the id, or end the path on the id: a @service or @condition parameter then takes the whole decoded key, an @outbox payload key the id as clients see it.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_ARGMAPPING_KEY_COLUMN_UNRESOLVED

Best-effort guidance, not yet reviewed.

Reported at the argMapping entry, the key columns it could have meant listed under it.

A path continuing past an @nodeId slot projects one column out of the decoded key, so that the parameter receives that column’s own value, and so does a path stopping on the id at a @routine parameter, a database function taking one value per parameter. Graphitron must know which column: with a composite key and no column named, with a name the key does not have, or with an interface’s or a union’s id, whose members each have their own key, there is no one column to project.

Next step. Name one of the listed key columns after the id, as in filmId: pick.filmActor.film_id; or, at a @service or @condition, end the path on the id itself, so the parameter takes the whole decoded key, a jOOQ Row for a composite key. Projection out of an interface’s or a union’s id is not available yet. See Projecting a key column out of a node id.

ARGMAPPING_PARAMETER_UNKNOWN

An argMapping entry's left side names a parameter the called method does not have, so the value it binds reaches nothing: name one of the method's parameters.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_ARGMAPPING_PARAMETER_UNKNOWN

Best-effort guidance, not yet reviewed.

Reported at the argMapping entry, its detail the name written, beside the PARAMETER_UNFILLED of the parameter that name was meant for.

The left-hand side of an entry at @service, @condition or @tableMethod names a parameter of the called method; at a @routine it names an IN parameter of the routine, under the camel-cased name jOOQ generated for it. A method compiled without -parameters has no names to compare against and draws PARAMETER_NAMES_MISSING instead.

ARGMAPPING_PATH_UNRESOLVED

An argMapping right-hand side names a path that does not exist: through the call's arguments and input fields, on a field beginning with one of the field's arguments, on an argument or an input field with a field of what that opens into, and each further name a field of the input type before it; or, after $result, through the fields of what the field returns.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_ARGMAPPING_PATH_UNRESOLVED

Best-effort guidance, not yet reviewed.

Reported at the argMapping string, the detail naming the segment that does not resolve.

The right-hand side of an argMapping entry names a GraphQL slot and then walks into nested input fields. One rule serves every directive that accepts an argMapping (@service, @condition, @routine, @tableMethod) because the path namespace is the same at all of them. Three shapes reach it: a head segment that names no slot in scope, a later segment that names no field on the input type at that depth, and a segment past something that opens nothing, a String, an enum or an ID with no @nodeId.

Next step. Correct the segment. Binding a parameter to a nested input field is the canonical description of the form.

A name past an ID opens it only where the ID declares @nodeId(typeName:), naming the node type whose key columns the name picks: pFilmId: input.filmId.film_id binds the film_id key column once filmId is ID @nodeId(typeName: "Film"). See Projecting one key column.

A name past a scalar carrying @generatedScalar opens it only where the name is one of the components its kind decodes a value into: text, startType, path or endType for SCHEMA_PATH, text or name for TYPE_NAME. pStart: input.sti.startType binds the path’s start type; input.sti.startTyp names nothing.

At a @routine a parameter is resolved from the database catalog rather than by reflection, and $source.<column> binds a column of the row the routine is applied to. A bare name never binds a column; where it names one, write $source.<column>. A path stopping on an input object binds no IN parameter, which takes one value: bind a scalar field inside it.

ARGMAPPING_SOURCE_MISFIT

An argMapping entry reads a source that exists but cannot fill the place it binds. A payload key holds one value JSON can carry: text, a number, a boolean, a character, a UUID or a java.time value, a node id, or a column of the row the write wrote. Bind a member or a field that is one, not the whole session handle, an object or record, or a path through a list.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_ARGMAPPING_SOURCE_MISFIT

Best-effort guidance, not yet reviewed.

Reported at the argMapping entry of an @outbox, the detail giving the entry and the reason it does not fit, such as the type it reads or the list it passes through.

An @outbox message is written as a JSON payload, each key holding one value, and the source must still exist when the message is written. So the build refuses a source whose value is an object, a record or the whole session handle, a path through a list, $result on an ERROR message (written after the rollback, when nothing the call wrote is left), $error on a SUCCESS message, and an $error field that not every error type of the field’s errors field declares with one type.

Next step. Bind a member or field holding one such value: for a record, its node id ($result.film.id); for the session, one member ($session.userId); for an error, $error.__typename, $error.message or a field every error type declares alike. See @outbox.

ARGMAPPING_UNPARSEABLE

An argMapping does not parse, so none of its entries binds anything and each parameter would be bound by name as though nothing were written: write each entry as parameter: path, separated by commas.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_ARGMAPPING_UNPARSEABLE

Best-effort guidance, not yet reviewed.

Reported at the argMapping string, the detail saying where the parse stopped.

An argMapping is a comma-separated list of entries, each a parameter name, a colon, and the path or sigil it is bound to. A string that does not parse binds nothing, so every parameter would fall back to being bound by name, as though no mapping were written, and what you meant would be dropped.

Next step. Write each entry as parameter: path, separated by commas. See argMapping.

ARGUMENT_UNBOUND

An argument or input field nothing binds: no call takes it as a parameter, itself or anything inside it, and graphitron reads it for no filter, ordering or page, so the value a client sends goes nowhere. An input field is reported where the call takes the argument in part, by argMapping paths that leave it behind. Bind it in the call's argMapping, or remove it.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_ARGUMENT_UNBOUND

Best-effort guidance, not yet reviewed.

One way to meet it is a filter slot an override suppresses that no condition reads. @condition(override: true) suppresses the implicit column = ? predicate of every argument and input field beneath it, on the understanding that the method stands in for them. The defect then says one of them reaches no parameter of any condition or call on the consuming field: no parameter is bound to it or to anything enclosing it, it carries no @condition of its own, and no bean bound above it has a member for it. A bean’s members match the input’s fields by their GraphQL names, so a member named after the column (setEMAILADRESSE_PRIVAT for @field(name: "EMAILADRESSE_PRIVAT")) does not read it. It is reported once, at the outermost such slot: a nested input object none of whose fields is read is reported at that field. The slot draws ARGUMENT_UNBOUND, or MEMBER_UNKNOWN where its input object is built into a bean.

Next step. Add the member to the bean, named after the GraphQL field; bind the slot another way (a parameter whose argMapping reaches it, or a @condition of its own); or drop override: true so the implicit predicate reads it. The @condition reference covers how beans are bound.

ASSERT_TYPE_COMPONENT_UNKNOWN

An @assertType names a component its element's generated scalar does not decode a value into: name one of the kind's components, text, startType, path or endType for SCHEMA_PATH and text or name for TYPE_NAME.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_ASSERT_TYPE_COMPONENT_UNKNOWN

Best-effort guidance, not yet reviewed.

Reported at the @assertType, the detail naming the component as written.

A generated scalar’s value is decoded into a fixed set of components for its kind, and a requirement judges the type one of them names. A SCHEMA_PATH value has text, startType, path and endType; a TYPE_NAME value has text and name. A component the kind does not have names nothing to judge.

Next step. Correct component: to one of the kind’s components, usually startType or endType for a path and name for a type name. See Kinds and components.

ASSERT_TYPE_ELEMENT_NOT_GENERATED

An @assertType sits on an argument or input field whose type is no scalar Graphitron generates, so no value is decoded into components for it to judge: put it on an element of a @generatedScalar type, or remove it.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_ASSERT_TYPE_ELEMENT_NOT_GENERATED

Best-effort guidance, not yet reviewed.

Reported at the @assertType, the detail naming the type of the argument or input field it is written on.

A requirement judges the types a generated scalar’s value names: the value is decoded into its components where a call takes it, and each @assertType names one component and a condition its type must meet. An argument or input field of any other type, a plain String among them, is never decoded, so there is nothing for the requirement to judge and it would never run.

Next step. Declare the element’s type as a scalar carrying @generatedScalar, or remove the @assertType. See @assertType.

ASSERT_TYPE_IMPLEMENTS_UNKNOWN

An @assertType condition's implements names no interface of this subgraph, or nothing at all, so no value could ever meet it: name an interface this subgraph declares.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_ASSERT_TYPE_IMPLEMENTS_UNKNOWN

Best-effort guidance, not yet reviewed.

Reported at the condition, the detail naming the interface as written, or none for {implements: null}.

An implements condition holds when the component’s type implements the named interface, directly or through another interface. A name that is no interface of this subgraph, an object type among them, or no name at all, is a condition no value can meet.

Next step. Name an interface this subgraph declares, or use is to require one type by name. See `@assertType’s conditions.

ASSERT_TYPE_IS_UNKNOWN

An @assertType condition's is names no object, interface or union type of this subgraph, or nothing at all, so no value could ever meet it: name a type this subgraph declares.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_ASSERT_TYPE_IS_UNKNOWN

Best-effort guidance, not yet reviewed.

Reported at the condition, the detail naming the type as written, or none for {is: null}.

An is condition holds when the component’s type is the named type, and a value can only name a type this subgraph declares. A name that is no object, interface or union of this subgraph, or no name at all, is a condition no value can meet, so every value would be refused.

Next step. Name an object, interface or union type this subgraph declares, spelled as the schema spells it. See `@assertType’s conditions.

BUILT_CLASS_UNBUILDABLE

An input object is built into a class nothing says how to make: no public canonical constructor or no-argument constructor with setters, or a class no classpath entry of the build declares. Give the class one, or take the delivered map.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_BUILT_CLASS_UNBUILDABLE

Best-effort guidance, not yet reviewed.

Reported at the argument or input field whose input object is built, the detail naming the class.

Graphitron builds an input object into the class the receiving parameter declares, field by field, before calling the method. The generated code must be able to construct that class: a public canonical constructor (a Java record), or a public no-argument constructor with setters. An abstract class, one the generated code cannot see such as a package-private nested class, or a class no declared dependency of the build carries cannot be constructed.

Next step. Give the class a public constructor of one of those shapes, declare the artifact carrying it, or declare the parameter as Map<String, Object> and read the delivered map. See Nested input types and @condition input-object parameters.

CHECKED_EXCEPTION_UNHANDLED

A @service method declares a checked exception no handler of its field's outcome covers, so the generated fetcher, which catches only what a handler claims, does not compile: add an @error type whose GENERIC handler names the exception or a supertype of it, or a DATABASE handler for an SQLException, or remove the throws clause. IOException and InterruptedException are exempt, as infrastructure failures that redact rather than surface; a declared exception the build resolves to no class, one on a transitive jar among them, is not judged here and is left to the compile.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_CHECKED_EXCEPTION_UNHANDLED

Best-effort guidance, not yet reviewed.

Reported at the @service field, the detail naming the checked exception.

The generated fetcher calls the service inside a try that catches only what the field’s errors channel claims. A checked exception nothing claims escapes the fetcher, which Java will not compile. IOException and InterruptedException are let through as infrastructure failures, redacted rather than surfaced.

Next step. Return a payload with an errors field whose @error types include a GENERIC handler naming the exception or a supertype of it, or a DATABASE handler for an SQLException; or remove the throws clause from the method. See How-to: The errors channel.

CLAIMS_CONFLICT

An element's directives claim two things it cannot be at once, such as a @service, whose author provides the code, beside a @mutation, whose code graphitron generates.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_CLAIMS_CONFLICT

Best-effort guidance, not yet reviewed.

Reported at the declaration of the field or type the claims are on, each conflicting claim listed under it.

Each directive claims what an element is: what a field runs (a @service, a @routine, a @mutation, a lookup) or how it binds (a column, an @externalField expression, a node id), and what a type is (a @table type, an @error type). A field runs one producer and binds one way, so any two claims on one element leave graphitron with two answers to which code it generates. A claim counts as written, so a @table naming a table the catalog lacks still conflicts.

Next step. Keep the one directive that says what the element is and remove the other. To combine behaviours, move one of them to a separate field or type.

CLASS_SUPERTYPE_NOT_READ

A producer hands over an object of a class whose supertypes reach a class the classpath reading did not read, so whether it is a jOOQ record, read through the Record API, or an object read by its getters cannot be told: the jar declaring that supertype is not on the classpath the graph is captured against.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_CLASS_SUPERTYPE_NOT_READ

Best-effort guidance, not yet reviewed.

Reported at the field whose producer hands the object over, the detail naming the supertype the reading did not read.

Graphitron reads a field off an object in one of two ways: through the jOOQ Record API where the object’s class is a jOOQ record, and through its getters or record components otherwise. It tells the two apart by following the class’s extends and implements clauses through the classes the build hands it, and a chain that reaches a class that reading never met cannot be followed further, so the class could be either. This is told apart from a class that was not read at all, CODE_REFERENCE_CLASS_NOT_READ.

Next step. Declare the artifact carrying the supertype in the module’s own <dependencies>, so the classpath the graph is captured against holds it: a transitive dependency or a plugin’s <dependencies> block does not count. For a generated jOOQ record that is org.jooq:jooq. See Make the class nameable.

CODE_REFERENCE_CLASS_NOT_READ

A code reference names a class the classpath reading did not read, so no method of it can be called: the name is misspelt, or the class sits in an entry the build does not hand the generator.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_CODE_REFERENCE_CLASS_NOT_READ

Best-effort guidance, not yet reviewed.

Reported at the code reference, the detail naming the class written in className:.

Graphitron reads the classes the build hands it before generating, so that every method it calls is checked against what is really there. A class that reading never met is either misspelt or lives in an artifact the module does not declare; this is told apart from a method that is missing on a class that was read, CODE_REFERENCE_METHOD_NOT_FOUND.

Next step. Check the fully qualified name, and declare the artifact carrying the class in the module’s own <dependencies>: a transitive dependency or a plugin’s <dependencies> block does not count. See Make the class nameable.

CODE_REFERENCE_METHOD_AMBIGUOUS

A code reference where the generator calls exactly one method, a @service, an @externalField or a FieldSort.method, names a method the classpath declares as several overloads, and nothing says which of them is meant.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_CODE_REFERENCE_METHOD_AMBIGUOUS

Best-effort guidance, not yet reviewed.

Reported at the code reference, the detail naming the class and method.

At a @service, an @externalField or a FieldSort.method the generated code calls one method, and graphitron binds its parameters from that method’s signature. With several public overloads of the name there is no one signature to bind. A @condition is different: it takes an overload set, and draws other codes when the overloads do not fit.

Next step. Rename one overload, or point the reference at a method whose name is declared once. See How-to: Wire external Java code.

CODE_REFERENCE_METHOD_NOT_FOUND

A code reference names a class the classpath reading read and a method that class does not declare publicly, an @externalField that names none meaning the field's own name.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_CODE_REFERENCE_METHOD_NOT_FOUND

Best-effort guidance, not yet reviewed.

Reported at the code reference, the detail naming the class and the method looked for.

The class was read, so the name is what fails: no public method of it is declared there. An @externalField written without method: looks for a method named after the GraphQL field.

Next step. Correct method:, make the method public, or, at an @externalField, write method: when the Java name differs from the field’s. See How-to: Wire external Java code.

CODE_REFERENCE_METHOD_UNFIT

A code reference names a method the directive cannot call: an @externalField's method must be static, take exactly one jOOQ table and return an org.jooq.Field.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_CODE_REFERENCE_METHOD_UNFIT

Best-effort guidance, not yet reviewed.

Reported at the code reference, the detail giving the first requirement the method fails.

An @externalField method is called while building the parent’s SELECT: graphitron passes it the parent’s jOOQ table and places the Field it returns in the select list. A method that is not static, takes anything other than exactly one jOOQ table, or returns something other than org.jooq.Field cannot be called there.

Next step. Change the method’s signature to public static Field<T> name(SomeTable table), or point the reference at a method of that shape. See @externalField.

COLUMN_AMBIGUOUS

A field reads a column, or an input field writes one of the jOOQ record its input object is built into, by a name that several columns of its table fold onto, by SQL name or generated name regardless of case, so there is no one column to select or write.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_COLUMN_AMBIGUOUS

Best-effort guidance, not yet reviewed.

Reported at the field or input field, the detail giving the name looked for.

Graphitron matches a name against the table’s columns regardless of case, by SQL name and by the name jOOQ generated. A table holding columns that differ only by case, such as "Code" and code, folds both onto one spelling, leaving graphitron no one column to select or write.

Next step. Where jOOQ generated a name for the column that no other column folds onto, such as CAPITAL_CODE for "Code", name it with @field(name:). Otherwise the clash is in the database’s column names, and renaming one of the columns is what separates them.

COLUMN_UNRESOLVED

A field reads a column the table it reads from does not have, its parent's or the one its @reference path arrives at, or an input field writes one the table whose jOOQ record its input object is built into does not have, or a filter's argument or input field compares one the table it filters does not have, under its own name or the one @field(name:) gives it, or an ordering's fields element names one, so there is nothing to select, write, compare or sort by: the name is misspelt, or the column lives on another table.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_COLUMN_UNRESOLVED

Best-effort guidance, not yet reviewed.

Reported at the @field(name:) where one is written, since that is the spelling to fix, and at the field, argument or input field otherwise; on an ordering, at the fields element. The detail gives the name looked for.

Graphitron selects, writes, compares or sorts by a column it finds in the jOOQ catalog, under the field’s own name or the one @field(name:) gives, by SQL name or generated name and regardless of case. Which table is searched depends on the site: the parent’s table, the table a @reference path arrives at, the table a filter filters (or the result of the @routine it filters), or the table whose jOOQ record an input is built into. Where the path itself arrives nowhere, the path draws its own defect and the column is not judged.

Next step. Correct the spelling, usually with @field(name:), or add or correct the @reference path to reach the table that holds the column. See @field and @reference.

CONDITION_NO_OVERLOAD_FOR_PAIR

A chain link's condition method is called with the table the link departs and the table it arrives at, and no declaration of it takes both, so the generated call does not compile.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_CONDITION_NO_OVERLOAD_FOR_PAIR

Best-effort guidance, not yet reviewed.

Reported at the path element that names the condition, the detail naming the table the step departs and the table it arrives at.

A condition in a @reference path joins two tables, so graphitron calls the method with both: the table the step leaves and the table it enters, in that order. Each parameter must accept its table as its generated class or as one of jOOQ’s public table types, such as Table<?>. With no declaration accepting this pair, the generated call would not compile.

Next step. Add or change a declaration so its two table parameters accept the two tables named, or check that the path reaches the tables you meant. See @reference and the rules for table parameters.

CONDITION_ON_WRITE_RESULT

A condition on the step out of a @routine write's result: the write's statement holds its locks and joins nothing onward, so its result is re-read by its key in a statement of its own, which the function's result is not part of for a condition to join from. Leave the result by a table or a key, and put the condition on a later step.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_CONDITION_ON_WRITE_RESULT

Best-effort guidance, not yet reviewed.

Reported at the first @reference path element after a Mutation field’s @routine, where that element carries a condition.

A @routine write runs in two statements: the routine call, which captures the key columns of the rows it returned, and a read-only re-read starting from the first hop’s table, keyed by those values. The routine is left out of the re-read, since calling it again would repeat the write, so the first step has no routine result on its left to join from and nothing for the condition’s first table to be.

Next step. Leave the routine’s result by a table or a key only, for example {table: "rental"}, and put the condition on a later step of the path, where it joins two tables of the re-read. See @routine writes on Mutation.

CONDITION_OVERLOAD_SHAPE_DISAGREES

A @condition names a method whose overloads differ in more than their jOOQ table parameters, on the static modifier, the return type, the parameter count, the throws clause or a parameter that is a table in some and not others or differs in name or type, so the name stands for more than one call.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_CONDITION_OVERLOAD_SHAPE_DISAGREES

Best-effort guidance, not yet reviewed.

Reported at the condition reference, on a field, an argument or an input field. The detail names the first point of disagreement: the parameter count, the static modifier, the return type, the throws clause, or a parameter position.

Graphitron generates one call to the named method and lets the Java compiler choose among overloads by the table argument. That is only sound when the overloads are the same call apart from their table parameters, so that one declaration per participant of a multitable interface or union can keep its own typed columns. A set differing in anything else would need different generated calls.

Next step. Make the overloads agree on everything but their jOOQ table parameters, or give the differing method a name of its own and reference that. See the @condition constraints and Filter a multitable interface or union.

CONDITION_OVERLOAD_TIE

A chain link's condition method has more than one declaration taking the table the link departs and the table it arrives at, and none of them is more specific than the others, so the generated call is ambiguous and does not compile.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_CONDITION_OVERLOAD_TIE

Best-effort guidance, not yet reviewed.

Reported at the path element that names the condition, the detail naming the two tables and the declarations that tie.

Graphitron calls a path element’s condition with the table the step departs and the table it arrives at, and leaves the choice among overloads to the Java compiler. When several declarations accept the pair and none is more specific than the others, for example (Customer, Table<?>) beside (Table<?>, Address), the call is ambiguous and does not compile.

Next step. Remove one of the tied declarations, or add one taking both tables by their generated classes, which is more specific than either. See @reference and the rules for table parameters.

CONDITION_PARAMETER_RECORD

A @condition method takes an input object as a jOOQ record, and a condition takes the input's values as a bean or the delivered map, a record being a row to write: declare the parameter as a bean or a Map.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_CONDITION_PARAMETER_RECORD

Best-effort guidance, not yet reviewed.

Reported at the argument or input field bound to the parameter, the detail naming the jOOQ record class.

Building an input onto a jOOQ record’s columns prepares a row to write, which is a @service feature. A condition only reads the input’s values to build a predicate, so graphitron hands a @condition either the map graphql-java delivered or a bean built from it.

Next step. Declare the parameter as a Java record or bean mirroring the input’s fields, or as Map<String, Object>. See @condition input-object parameters.

CONDITION_WITHOUT_METHOD

@condition adds the predicate of the method its condition: names by className and method, and defaults neither, so without both there is no predicate to add.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_CONDITION_WITHOUT_METHOD

Best-effort guidance, not yet reviewed.

Reported at the @condition, on a field, an argument or an input field.

Graphitron adds the predicate the named method returns to the query, and neither the class nor the method has a default. A @condition with no condition: argument, or one missing className: or method:, names no method to call. This holds with override: true too, since the method is what stands in for the predicates the override suppresses.

Next step. Write condition: {className: "…​", method: "…​"} with both names, or remove the @condition. See @condition.

CONNECTION_FACETS_DISAGREE

Fields returning one connection type fill one facets record, the type's, so each must surface the same facets from its own filter arguments: the same names, with the same value types and nullability, in the same order. Give each field the same @asFacet filter fields, or return a connection type of its own; a field returning a type whose facets field asks for facets must surface some.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_CONNECTION_FACETS_DISAGREE

Best-effort guidance, not yet reviewed.

Reported at each field returning the connection type, naming the type in the detail.

A connection’s facets field returns one facets type, generated once for the connection type. Each field returning the connection runs its own count and facet queries, from its own arguments, but all of them fill that one type, so each must surface the same facets: the same names, with the same value types and nullability, in the same order. Which argument a facet’s filter rides in, and which column it groups by, are each field’s own and may differ. Two fields sharing a connection through connectionName: where only one takes a filter with @asFacet disagree:

type Query {
  filmsFaceted(filter: FilmFilter): [Film!]! @asConnection(connectionName: "SharedFilmsConnection")
  filmsPlain: [Film!]! @asConnection(connectionName: "SharedFilmsConnection")
}

Both fields draw the code, not only the one that differs from the first. A field returning a connection type whose facets field asks for facets it does not surface draws it too.

Next step. Give every field returning the connection the same @asFacet filter fields, or give each its own connection type. @asFacet constraints lists the rules.

CONNECTION_FACETS_FIELD_DECLARED

A connection type declares a facets field, which is graphitron's to generate from the @asFacet fields of the filters of an @asConnection field returning the connection; a connection type an author declared does not gain one yet. Remove the facets field, or let @asConnection generate the connection.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_CONNECTION_FACETS_FIELD_DECLARED

Best-effort guidance, not yet reviewed.

Reported at the facets field’s declaration, naming the connection type in the detail.

A connection’s facets field and its facets type are generated by graphitron from the @asFacet fields of the connection’s filter inputs, together with the code that counts them. A connection type you declare yourself does not gain one yet, so a facets field declared on it names a facets record nothing builds. A declaration standing in for a connection @asConnection generates is checked against the generated shape instead, by MINTED_TYPE_DECLARED_SHORT.

Next step. Remove the facets field, or let @asConnection generate the connection, with the filter’s @asFacet fields giving it its facets.

CONNECTION_RETURN

A write re-reads its committed rows by the keys it returned, which is not a page, so the generator emits nothing for a write @asConnection rewrote.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_CONNECTION_RETURN

Best-effort guidance, not yet reviewed.

Reported at the @mutation of a write @asConnection rewrote, or at the @routine of a @routine write.

A write returns the keys of the rows it wrote, and graphitron re-reads those rows by key after the write. That re-read is the set the write touched, not a page of a larger list, so it has no cursors or pageInfo to offer and graphitron generates nothing for the field.

Next step. Drop @asConnection and return a list of the written type, for example [Film]. See @mutation.

CONTEXT_KEY_DUPLICATE

A call is given a context key for one parameter twice, by two contextArguments elements or by an element and a $context pair, so nothing says which fills it: write it once.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_CONTEXT_KEY_DUPLICATE

Best-effort guidance, not yet reviewed.

Reported at each writing that gives the parameter a context key, a contextArguments element or an argMapping pair, the detail naming the parameter.

Graphitron fills each parameter of the called method from exactly one source. Two writings for one parameter, whether the same key twice or an element beside a pair, would each fill it, so graphitron fills it from neither.

Next step. Remove all but one of the writings for that parameter. See @service parameter filling.

CONTEXT_KEY_MALFORMED

An argMapping entry's right side is not a context binding: the form is parameter: $context.<key>, exactly one key after the dot, and nothing following the dot, a second dot, or $tenant on the left fills no parameter. Write one parameter and one key.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_CONTEXT_KEY_MALFORMED

Best-effort guidance, not yet reviewed.

Reported at the argMapping entry, the detail its right-hand side as written.

A $context entry is parameter: $context.<key>: one parameter on the left, and exactly one key after the dot. $context. names no key, $context.a.b names two, and $tenant on the left names no parameter, so the entry fills nothing.

Next step. Write one parameter and one key, as userId: $context.userId. See @service constraints.

CONTEXT_KEY_TYPE_DISAGREES

One context key fills parameters of two Java types across the graph's calls, and the request context carries one value under a key, which the generated code reads as one class: declare every parameter the key fills as one type.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_CONTEXT_KEY_TYPE_DISAGREES

Best-effort guidance, not yet reviewed.

Reported at each writing whose key fills a parameter of one Java type here and of another at some other call in the schema, a contextArguments element or an argMapping $context pair, the detail naming the key, this parameter’s type and the other.

The request context carries one value under a key, and graphitron reads it as one class wherever the key is used: in the parameter the generated execution-input factory takes for it, and in the cast at each call. Two calls declaring the parameter as different types, Long at one and long or String at another, cannot both be served by that one read, so one of them would fail at request time.

Next step. Declare every parameter the key fills as the same type, or give the calls that need another type a key of their own. See @service parameter filling and @condition.

DEFAULT_PAGE_SIZE_ABOVE_MAXIMUM

A connection's default page size is larger than the build's <maxAllowedPageSize>, so the schema advertises a default no request can receive, every page being served at the maximum: lower the default, or raise the maximum.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_DEFAULT_PAGE_SIZE_ABOVE_MAXIMUM

Best-effort guidance, not yet reviewed.

Reported where the default was written: the @asConnection whose defaultFirstValue: set it, or the first: argument the field declares itself. The detail gives the default and the maximum.

A request asking for more than <maxAllowedPageSize> rows is served at the maximum, so a default above it is advertised in the schema but never delivered. The default graphitron mints when none is written is lowered to the maximum, and a default equal to the maximum is accepted.

Next step. Lower the default to at most the maximum, or raise <maxAllowedPageSize> in the plugin configuration. See @asConnection and Mojo configuration.

DISCRIMINATE_UNKNOWN_COLUMN

A @discriminate(on:) names no column of the interface's table, by its SQL name or its jOOQ name: name a column of that table.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_DISCRIMINATE_UNKNOWN_COLUMN

Best-effort guidance, not yet reviewed.

Reported at the @discriminate, the detail naming the column written in on:.

A single-table interface is fetched with one SELECT against the interface’s table, and each row is placed in a member by the value of the on: column. A name that matches no column of that table, by its SQL name or its jOOQ name, leaves nothing to read the value from.

Next step. Correct on: to a column of the interface’s @table. See @discriminate.

DISCRIMINATE_WITHOUT_TABLE

A @discriminate is on an interface or union with no @table, so there is no shared table whose column tells its members apart: give the interface @table, or drop @discriminate for a multitable interface.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_DISCRIMINATE_WITHOUT_TABLE

Best-effort guidance, not yet reviewed.

Reported at the @discriminate.

@discriminate(on:) names a column of the one table every member’s rows share, and that table is the interface’s own @table. A union cannot carry @table, so a union with @discriminate always draws this.

Next step. Give the interface the @table its members share; or, when the members live on different tables, drop @discriminate and let graphitron fetch the interface as a multi-table interface. See @discriminate and How-to: Polymorphic types.

DISCRIMINATOR_DUPLICATE

Two members of one interface writing @discriminate write the same @discriminator value, so the value tells neither apart: give each member its own.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_DISCRIMINATOR_DUPLICATE

Best-effort guidance, not yet reviewed.

Reported at each @discriminator writing the shared value, the detail naming the interface.

Graphitron places each row of the shared table in the member whose @discriminator(value:) equals the row’s discriminating column. With two members claiming one value, a row holding it belongs to neither more than the other.

Next step. Give each member a value of its own. See @discriminator.

DISCRIMINATOR_MISSING

A member of an interface writing @discriminate has no @discriminator, so no value tells its rows apart: give it @discriminator(value:).

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_DISCRIMINATOR_MISSING

Best-effort guidance, not yet reviewed.

Reported at the interface’s @discriminate, naming each table-bound member that carries no @discriminator.

Graphitron places each row of the shared table in a member by comparing the discriminating column with the members' values. A member without a value could never be chosen, and its rows could not be told apart from the others'.

Next step. Add @discriminator(value:) to each member named. See @discriminator.

DISCRIMINATOR_NOT_IN_DOMAIN

A @discriminator value is not among the literals of the database enum the discriminating column is, so it would match no row: write one of the enum's literals, as the database spells it.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_DISCRIMINATOR_NOT_IN_DOMAIN

Best-effort guidance, not yet reviewed.

Reported at the @discriminator, the detail naming the database enum type of the discriminating column.

The value is bound through the column’s own type. A string outside the enum’s literals binds as NULL and would silently match no row, so graphitron checks it against the catalog instead. A varchar column has no literal set and is not checked.

Next step. Write one of the enum’s literals, spelled as the database spells it. See @discriminate.

DISCRIMINATOR_WITHOUT_DISCRIMINATE

A @discriminator is on a type that implements no interface writing @discriminate, so there is no column for its value to match: add @discriminate to the interface, or drop @discriminator.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_DISCRIMINATOR_WITHOUT_DISCRIMINATE

Best-effort guidance, not yet reviewed.

Reported at the @discriminator.

A @discriminator value is only read against the column an interface’s @discriminate(on:) names. On a type implementing no such interface it would match nothing and is most likely left over or misplaced.

Next step. Add @discriminate to the interface the type implements, or remove the @discriminator. See @discriminator.

ELEMENT_UNRESOLVED

A chain link names something the catalog and the classpath do not have, a foreign key, a table, a condition method or a routine with a generated call, so the chain stops here and the generator emits no join at all; a root field's leading @routine naming no routine is the same name claimed in vain, and the field calls nothing; and an ordering's index the table the field reads does not have, named in the detail, leaves nothing to sort by.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_ELEMENT_UNRESOLVED

Best-effort guidance, not yet reviewed.

Reported at the element that names what is missing: a @reference path element (its key, table or condition), a @routine, or the index an ordering names, the detail giving the name where there is one.

Graphitron generates each join, call and sort from what the jOOQ catalog and the classpath declare: a foreign key, a table, a condition method, a routine jOOQ generated a call for, an index. A name matching none of these, or matching the wrong kind of object, such as a table where a routine is expected, leaves nothing to generate from. A path stops at the first such element, and only that element is reported.

Next step. Correct the spelling. A table is written table or schema.table, with no empty half and no third segment; a routine must be a database function jOOQ generated; an index is found only when jOOQ generates indexes (<includeIndexes>true</includeIndexes>). Check that the catalog the build reads is current. See @reference, @routine and @order.

ENUM_CONSTANT_MISSING

A GraphQL enum value a @service parameter or input member takes as a Java enum constant has no constant of its name on that enum, its @field(name:) or else its own, so Enum.valueOf throws when a client sends it: rename the value or its @field(name:) to a constant the enum declares, or take the value as a String.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_ENUM_CONSTANT_MISSING

Best-effort guidance, not yet reviewed.

Reported at the field whose @service parameter takes the constant, or at the input field filling the member, the detail naming the GraphQL enum value.

Graphitron converts the value a client sends to the Java enum the parameter or member declares, by name: the value’s @field(name:) where one is written, its own name otherwise. With no constant of that name, the conversion would throw at request time, when a client first sends the value.

Next step. Rename the GraphQL value, or point it at an existing constant with @field(name:); add the constant to the Java enum; or declare the parameter or member as a String and read the value by name. See @service parameter filling.

ERRORS_FIELD_MIXED_MEMBERS

A field lists a union or an interface with an @error member and a member that is no @error, so it is neither a list of errors nor a result: make every member @error, or none.

Severity

error

Basis

GRAPHITRON

Editor code

graphitron.error-channel.mixed-members

Best-effort guidance, not yet reviewed.

Reported at the field’s declaration.

Graphitron recognises an errors field by its element type: a union or interface whose every member is @error, or one @error type. A list mixing @error members with ordinary ones is neither where caught exceptions arrive nor a plain result, so the build cannot tell which the author meant.

Next step. Split the errors into a union or interface of @error types only, and return the other members through a field of their own. See How-to: The errors channel.

ERRORS_FIELD_NON_NULL

A list of errors may not be null, and on success there are no errors to hand it: make the list nullable.

Severity

error

Basis

GRAPHITRON

Editor code

graphitron.error-channel.non-nullable-errors-field

Best-effort guidance, not yet reviewed.

Reported at the errors field’s declaration.

When the producer succeeds, nothing was caught and the errors field resolves to null. A non-null list would then fail the response on every success.

Next step. Drop the outer ! from the list type; the elements may stay non-null, as in [FilmError!]. See How-to: The errors channel.

ERRORS_FIELD_NOT_A_LIST

A field returns a single value of a union or an interface of @error types, and errors arrive as a list: declare it as a list.

Severity

error

Basis

GRAPHITRON

Editor code

graphitron.error-channel.errors-field-not-a-list

Best-effort guidance, not yet reviewed.

Reported at the field’s declaration.

Each exception a handler claims becomes one entry in the payload’s errors field, so the field is read as a list. A single value of an @error type, or of a union or interface of them, has no place for that list.

Next step. Declare the field as a nullable list, for example errors: [FilmError!]. See How-to: The errors channel.

ERRORS_IN_A_ROW

A type read as a row of a statement has a field of errors, and an error is something a producer caught, which a row never holds: move the errors to the type a root service or write returns.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_ERRORS_IN_A_ROW

Best-effort guidance, not yet reviewed.

Reported at the errors field’s declaration.

Errors arrive when a producer, a @service, a @routine or a @mutation, throws and a handler claims the exception; they fill the errors field of the payload that producer returns. A type graphitron reads as rows of a query is filled column by column from the database, and no exception is ever caught on its behalf, so its errors field would always be empty.

Next step. Move the errors field to the payload type the root @service or write returns. See How-to: The errors channel.

ERROR_FIELD_UNREADABLE

An @error type's field, other than path and message, is read off the exception its handler matches, and that class has no get or is getter of the field's name or @field(name:) returning what the field's scalar is, a bare accessor or a public field not being read: name a getter the class has with @field(name:), give the class one, or give the field the type its getter returns. A field carrying @nodeId(typeName:) encodes what its getter yields, so the getter has to return the one key column of the node named, in that column's own class and not as the encoded id, and a node whose key has several columns, or a type that is several nodes, cannot be read from one getter.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_ERROR_FIELD_UNREADABLE

Best-effort guidance, not yet reviewed.

Reported at the @error type’s field, the detail naming the class it is read from: the exception a GENERIC handler names, java.sql.SQLException for a DATABASE handler, or graphql.GraphQLError for VALIDATION.

Every field of an @error type other than path and message is filled from the matched exception through a get or is getter, so the generated code needs one whose return fits the field’s type. A bare code() method or a public field is not read.

Next step. Point the field at an existing getter with @field(name:), add the getter to the exception class, or change the field’s type to what the getter returns. See @error extra fields.

FACET_SURFACED_NOWHERE

An @asFacet filter field counts its values for the connections that take its input type as an argument, and no field returning a connection takes it: the counts would surface nowhere. Use the input as the filter of an @asConnection field, or remove @asFacet.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_FACET_SURFACED_NOWHERE

Best-effort guidance, not yet reviewed.

Reported at the @asFacet, naming the input type in the detail.

A facet’s counts surface on the facets field of the connections whose filter argument takes the input type. Where no field returning a connection takes it, only list fields or none at all, the counts would surface nowhere. An input taken only by fields returning a connection type you declared yourself is valid, and is the deferral AUTHORED_CONNECTION_FACET_UNSUPPORTED instead.

Next step. Use the input as the filter of an @asConnection field, or remove @asFacet.

FIELD_NAME_SIGIL_UNKNOWN

An output field's @field(name:) starts with $ and is no sigil graphitron knows, so it names no column or member and never can. $errors is the one sigil left; $source is retired: drop it, the payload's data field binds the producer's value without it.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_FIELD_NAME_SIGIL_UNKNOWN

Best-effort guidance, not yet reviewed.

Reported at the @field(name:) on an output field, the detail giving the name as written.

@field(name:) names the column or member a field reads, and no column or member name starts with $, so a name that does can never resolve. The one sigil left is $errors, which is inert on an errors field and draws a warning that it can go. $source is retired: it once bound a mutation payload’s data field to the value the producer returned, and the data field binds that value without it, so nothing is lost by dropping it.

Next step. Remove the @field from a payload’s data field that wrote $source; elsewhere, write the column or member name the field reads. See @field.

FIELD_WITHOUT_FETCHER

A field neither runs anything nor reads from a result its parent holds, so graphitron has nothing to fetch it with.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_FIELD_WITHOUT_FETCHER

Best-effort guidance, not yet reviewed.

Reported at the field’s declaration.

Every field either runs something of its own (a query, a lookup, a write, a @service, a @routine) or reads its value from what its parent holds (a column of the parent’s row, a member of the parent’s object). A field doing neither is a field graphitron would leave unanswered, so the build stops. Two shapes reach it:

  • A field on a root type with nothing written on it whose return type lands on no table, for example a Mutation field with no @mutation, @service or @routine.

  • A field returning a union or interface none of whose implementers is @table-bound, wherever graphitron would fetch it: at the root, or under a table-bound parent, as a list, a single value or a connection. Graphitron fetches such a field per table-bound participant, so with none there is nothing to fetch; an interface’s own @table does not count, so one carrying @table that no table-bound type implements is refused too. Under a value a @service handed back, the field is read off that value instead, and is no defect.

Next step. Write what the field runs, or bind at least one implementer of the union or interface to a table. How-to: Polymorphic types covers the layouts graphitron fetches.

GENERATED_SCALAR_BOUND_WHOLE

An argument or input field of a @generatedScalar type is bound some other way than as a component an argMapping names: by a parameter's name or type, inside an input object a call takes whole, as a member, a column, a filter, a tenant or an @outbox key. Only a component binding decodes and checks the value, so name the component the parameter takes, as input.path.endType.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_GENERATED_SCALAR_BOUND_WHOLE

Best-effort guidance, not yet reviewed.

Reported at the argument or input field, the detail naming what binds it: PARAMETER for a call parameter filled by its name, by its type or through an input object above it, MEMBER for a member of a class or record it is built into, COMPARED for a column a filter or a write compares or writes, and so on for a tenant, an @outbox key or a @condition taking it.

A generated scalar is a string on the wire, and inside the generated code its value is decoded into a record of components, text, startType, path and endType for a SCHEMA_PATH and text and name for a TYPE_NAME. The decode is where the value is checked against the schema the service serves, and where every @assertType on the argument runs. A call takes the components it needs by naming them in argMapping; any other binding would hand over the unchecked string, so it is refused rather than passed on.

Next step. Name the component the parameter takes, pEnd: input.mottakersti.endType rather than pEnd: input.mottakersti, and where the value sits in an input object a call takes whole, map the components the call needs from it instead. A column, a filter or an @outbox key cannot take one: store the value through a call that takes its text. See `@generatedScalar’s constraints.

GENERATED_SCALAR_COLUMN_NOT_TEXT

An output field of a @generatedScalar type reads a column that holds no string, and the field hands back the stored text as it is: read a text column, or give the field another type.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_GENERATED_SCALAR_COLUMN_NOT_TEXT

Best-effort guidance, not yet reviewed.

Reported at the output field, the detail naming the Java class jOOQ binds the column to.

A generated scalar is a string on the wire. As output, a field of one reads its column and hands back the stored text as it is, without checking, since a stored value may predate a schema change. A column jOOQ binds to another class than String, a number, a date or a UUID, holds no such text.

Next step. Point the field at a text column, with @field(name:) where its name is not the column’s, or give the field a type that matches the column. See As output.

GENERATED_SCALAR_UNDECODED

An argument or input field of a @generatedScalar type is taken by no call, so its value is never decoded or checked and no @assertType on it runs: bind a component of it in a call's argMapping, or remove it.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_GENERATED_SCALAR_UNDECODED

Best-effort guidance, not yet reviewed.

Reported at the argument or input field.

A generated scalar’s value is decoded and checked where a call takes one of its components through argMapping, and only there. An argument or input field of one that no call takes is never decoded, so a wrong value is not refused, and any @assertType written on it never runs. Where another code already reports that nothing takes it, ARGUMENT_UNBOUND under a @service or an overriding condition, COLUMN_UNRESOLVED on a filter naming no column, or MEMBER_UNKNOWN under a class its input object is built into, that code speaks for it, there or at a step above it, and this one stands aside.

Next step. Bind the component a call needs, pStart: path.startType, or remove the argument. See Where a value is checked.

GROUPING_LIST

A list of input objects fills no member of the class its parent is built into, or sits under a jOOQ record, and a grouping fills the enclosing object once, which a list has no one value for: give the class a member for the list, or make the field one input object.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_GROUPING_LIST

Best-effort guidance, not yet reviewed.

Reported at the list field, the detail naming the class or jOOQ record its parent is built into.

A nested input field that matches no member of the class is read as a grouping: its own fields fill the enclosing class as if declared beside it, once. A list of input objects holds any number of such values, with no one value to spread onto the enclosing class. Under a jOOQ record the same holds, since a record is one row.

Next step. Add a member to the class that takes the list, named after the field, or make the field a single input object. See How-to: Handle services.

INHERITED_PATH_AMBIGUOUS

A field with no path written implements the same-named field of two interfaces, neither extending the other, that each write a path for it, so nothing says which one it inherits: write the path on the field itself.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_INHERITED_PATH_AMBIGUOUS

Best-effort guidance, not yet reviewed.

Reported at the implementing field’s declaration, the detail naming the two interfaces.

A field with no @reference of its own inherits the path written on the same-named field of an interface its type implements, and an interface extending another overrides the path it redeclares. When two interfaces, neither extending the other, each write a path for the field, neither overrides the other and graphitron has no rule for choosing which join to generate.

Next step. Write the path on the implementing field itself with @reference (or @referenceFor per participant); the field’s own path beats an inherited one. See Path rules.

INPUT_CYCLE_EXPANDED

An input object is reached again inside itself where a call builds its value into a class or a filter compares it, and its nesting has no last level, so the nested value would be dropped: break the cycle in the input type, or take the nested part as a parameter of its own.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_INPUT_CYCLE_EXPANDED

Best-effort guidance, not yet reviewed.

Reported at the input field that reaches the type again, the detail naming the type.

An input object is read field by field, nested inputs included, and one whose fields lead back to its own type, directly or through another input type, has no last level. Graphitron refuses it where it reads the value as a whole:

  • under a class a @service or a @condition builds the input into;

  • under a field whose rows a plain filter input narrows, whatever an overriding @condition says.

Taking the same input type in two sibling fields is no cycle; only a type inside itself is.

Next step. Break the cycle in the input type, or take the nested part as a parameter of its own. @field covers how a filter input binds its columns.

KEY_FIELD_MISSING

A federation @key selects a field its type does not declare. The fields a key selects are fields of its type, whatever the type is bound to: declare the field, or name one the type has.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_KEY_FIELD_MISSING

Best-effort guidance, not yet reviewed.

Reported at the @key, the detail naming the field it selects.

The fields a key selects are the fields a router sends back to this subgraph to name an entity, so each must be a field the type declares. This holds on any type, a key with resolvable: false included, because the key describes the type’s own shape whatever it is bound to.

Next step. Correct the name in fields:, or declare the field on the type. See How-to: Federation key fields.

KEY_FIELD_NOT_A_COLUMN

A federation @key selects a field that is not a column of the entity's own table, a nested selection or a field read some other way, and an entity is resolved by matching its key's values against that table's columns: key on fields that read the table's columns, or on the node's own id alone.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_KEY_FIELD_NOT_A_COLUMN

Best-effort guidance, not yet reviewed.

Reported at the @key, the detail naming the field it selects.

Graphitron resolves an entity by selecting the row of its own table whose columns equal the key’s values. A nested selection, a field read through a @reference path, an @externalField or computed scalar, and an @nodeId field carrying another node’s encoded id hold no column of that table to compare against. The node’s own id is the one exception, and only when it is the key’s only field: graphitron decodes it.

Next step. Select fields that read columns of the type’s own table, or key on the node’s id alone. See How-to: Federation key fields.

KEY_ON_INTERFACE

A federation @key is on a table-bound interface, and an entity is resolved by one table: declare the key on each implementing type instead.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_KEY_ON_INTERFACE

Best-effort guidance, not yet reviewed.

Reported at the @key on the interface.

Federation allows a key on an interface, but graphitron resolves each entity from the one table its type is bound to, and its entity resolution does not dispatch through an interface to its implementers.

Next step. Move the @key from the interface to each implementing type. See How-to: Federation key fields.

KEY_ROW_AMBIGUOUS

A field fetching its own rows under a parent holding an object takes its keys through one member of the object's class: for a @service the member returning records of the table its source parameter collects, otherwise the member named as the field reads. More than one member qualifies, so nothing says which: keep one.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_KEY_ROW_AMBIGUOUS

Best-effort guidance, not yet reviewed.

Reported at the field’s declaration, the detail naming the class of the object its parent holds.

A field fetching its own rows is batched by the keys of its parents. Under a parent holding a Java object rather than a table’s row, graphitron reads those keys off a member of the object’s class: for a @service, the member returning records of the table its Sources parameter collects, found by what it returns rather than by its name; for another field, the member named as the field. With two members qualifying, the keys could come from either.

Next step. Change the class so only one member qualifies, for example by removing or retyping the other. See the @service constraints.

KEY_SELECTS_NOTHING

A federation @key's fields: selects no field, so nothing identifies the entity: name the fields of its key.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_KEY_SELECTS_NOTHING

Best-effort guidance, not yet reviewed.

Reported at the @key, typically one written with an empty fields: "".

A key with no fields gives a router nothing to send back and graphitron no columns to match a row by.

Next step. Name the fields that identify the entity, or remove the @key. See How-to: Federation key fields.

KEY_TABLE_WITHOUT_PRIMARY_KEY

Rows graphitron keys by their table's primary key are of a table that has none: a field fetching its own rows under a parent holding an object is batched by the key table's, and the records a @service hands back are read back by their own table's. Give the table a primary key, or fetch the field another way.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_KEY_TABLE_WITHOUT_PRIMARY_KEY

Best-effort guidance, not yet reviewed.

Reported at the field, the detail naming the table.

Graphitron keys two kinds of rows by their table’s primary key. A field that fetches its own rows under a parent holding an object is batched, its keys grouped by that key; and the records a @service hands back are read back from their table by it, at a root and below one alike. A table with no primary key gives neither anything to key by.

Next step. Give the table a primary key, or fetch the field another way.

KEY_TYPE_NOT_TABLE_BOUND

A resolvable federation @key is on a type with no @table, and this subgraph resolves an entity by selecting its row from its table: bind the type to a table, or mark every key resolvable: false if another subgraph resolves it.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_KEY_TYPE_NOT_TABLE_BOUND

Best-effort guidance, not yet reviewed.

Reported at the @key, the detail naming the type.

This subgraph answers _entities for a resolvable key by selecting the entity’s row from its table, matching the key’s values against that table’s columns. A type with no @table has no table to select from. A key marked resolvable: false is another subgraph’s to resolve and needs none.

Next step. Bind the type to a table with @table, or, if another subgraph resolves the entity, mark every one of its keys resolvable: false. Federation lists the rules a key is held to.

LIST_CONDITION_BELOW_LIST

A @condition binds a parameter to a field read once per element of a list of input objects, which one call has no single value for: bind the whole list instead.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_LIST_CONDITION_BELOW_LIST

Best-effort guidance, not yet reviewed.

Reported at the @condition, not at an element field. Its argMapping reaches below the list, whether the @condition is on the list field itself or on the field and reaching through it; bind the whole list instead.

A filter field typed as a list of input objects matches rows equal to any one element, comparing the element’s fields together as one row ((c1, c2) IN ..), (..). That reading holds only when every element field is one value bound to a column, so the build refuses an element field that is itself a list or a list of input objects, is a node id, or carries @condition; one that binds no column is COLUMN_UNRESOLVED, as anywhere else. Each defect sits at the element field, because the same input type is fine elsewhere (as a non-list nested input, or as a @service parameter), and one declaration read through two list filters is one defect. A @lookupKey list is the lookup’s key rather than a filter, and none of this applies to it. Under a @condition written with override: true, on the list field or anything enclosing it, the condition owns the list and its elements are not compared as rows, so only LIST_ELEMENT_CONDITION still applies there.

The element fields' columns may all sit on the filtered table, or all on one table reached through the same @reference path, so the build also refuses, as LIST_ELEMENT_PATHS_DIFFER, element fields whose columns are reached through different @reference paths, two paths reaching one table over different keys or conditions among them, or that mix the filtered table’s own columns with a path.

Next step. Give every element field the same @reference path, or move the field out of the element type. To filter on a shape the row cannot express, put @condition(override: true) on the list field; the method receives the whole list and owns the predicate. @field on a list-of-input filter describes the semantics.

LIST_ELEMENT_CONDITION

An input field of a list of input objects a filter compares as rows carries @condition, whose value would be read through the list as one object: put @condition(override: true) on the list field to take the whole list instead.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_LIST_ELEMENT_CONDITION

Best-effort guidance, not yet reviewed.

Reported at the element field’s declaration.

A filter field typed as a list of input objects matches rows equal to any one element, comparing the element’s fields together as one row ((c1, c2) IN ..), (..). That reading holds only when every element field is one value bound to a column, so the build refuses an element field that is itself a list or a list of input objects, is a node id, or carries @condition; one that binds no column is COLUMN_UNRESOLVED, as anywhere else. Each defect sits at the element field, because the same input type is fine elsewhere (as a non-list nested input, or as a @service parameter), and one declaration read through two list filters is one defect. A @lookupKey list is the lookup’s key rather than a filter, and none of this applies to it. Under a @condition written with override: true, on the list field or anything enclosing it, the condition owns the list and its elements are not compared as rows, so only LIST_ELEMENT_CONDITION still applies there.

The element fields' columns may all sit on the filtered table, or all on one table reached through the same @reference path, so the build also refuses, as LIST_ELEMENT_PATHS_DIFFER, element fields whose columns are reached through different @reference paths, two paths reaching one table over different keys or conditions among them, or that mix the filtered table’s own columns with a path.

Next step. Give every element field the same @reference path, or move the field out of the element type. To filter on a shape the row cannot express, put @condition(override: true) on the list field; the method receives the whole list and owns the predicate. @field on a list-of-input filter describes the semantics.

LIST_ELEMENT_NODE_ID

An input field of a list of input objects a filter compares as rows is a node id, whose decoded key one cell of a row of plain values cannot hold: move it out of the element type.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_LIST_ELEMENT_NODE_ID

Best-effort guidance, not yet reviewed.

Reported at the element field’s declaration.

A filter field typed as a list of input objects matches rows equal to any one element, comparing the element’s fields together as one row ((c1, c2) IN ..), (..). That reading holds only when every element field is one value bound to a column, so the build refuses an element field that is itself a list or a list of input objects, is a node id, or carries @condition; one that binds no column is COLUMN_UNRESOLVED, as anywhere else. Each defect sits at the element field, because the same input type is fine elsewhere (as a non-list nested input, or as a @service parameter), and one declaration read through two list filters is one defect. A @lookupKey list is the lookup’s key rather than a filter, and none of this applies to it. Under a @condition written with override: true, on the list field or anything enclosing it, the condition owns the list and its elements are not compared as rows, so only LIST_ELEMENT_CONDITION still applies there.

The element fields' columns may all sit on the filtered table, or all on one table reached through the same @reference path, so the build also refuses, as LIST_ELEMENT_PATHS_DIFFER, element fields whose columns are reached through different @reference paths, two paths reaching one table over different keys or conditions among them, or that mix the filtered table’s own columns with a path.

Next step. Give every element field the same @reference path, or move the field out of the element type. To filter on a shape the row cannot express, put @condition(override: true) on the list field; the method receives the whole list and owns the predicate. @field on a list-of-input filter describes the semantics.

LIST_ELEMENT_NOT_ONE_VALUE

An input field of a list of input objects a filter compares as rows is itself a list, and one cell of a row holds one value: declare one value, or move the field out of the element type.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_LIST_ELEMENT_NOT_ONE_VALUE

Best-effort guidance, not yet reviewed.

Reported at the element field’s declaration.

A filter field typed as a list of input objects matches rows equal to any one element, comparing the element’s fields together as one row ((c1, c2) IN ..), (..). That reading holds only when every element field is one value bound to a column, so the build refuses an element field that is itself a list or a list of input objects, is a node id, or carries @condition; one that binds no column is COLUMN_UNRESOLVED, as anywhere else. Each defect sits at the element field, because the same input type is fine elsewhere (as a non-list nested input, or as a @service parameter), and one declaration read through two list filters is one defect. A @lookupKey list is the lookup’s key rather than a filter, and none of this applies to it. Under a @condition written with override: true, on the list field or anything enclosing it, the condition owns the list and its elements are not compared as rows, so only LIST_ELEMENT_CONDITION still applies there.

The element fields' columns may all sit on the filtered table, or all on one table reached through the same @reference path, so the build also refuses, as LIST_ELEMENT_PATHS_DIFFER, element fields whose columns are reached through different @reference paths, two paths reaching one table over different keys or conditions among them, or that mix the filtered table’s own columns with a path.

Next step. Give every element field the same @reference path, or move the field out of the element type. To filter on a shape the row cannot express, put @condition(override: true) on the list field; the method receives the whole list and owns the predicate. @field on a list-of-input filter describes the semantics.

LIST_ORDER_UNDETERMINED

A list or connection over a table with no primary key, or over a table-valued function's result, states no order, neither @defaultOrder nor an @orderBy argument a client must give, so where none is given its rows arrive in whatever order the database returns them, differently from run to run: add @defaultOrder naming the result's columns with fields:, or make a single-valued @orderBy argument non-null; a list a client may send empty.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_LIST_ORDER_UNDETERMINED

Best-effort guidance, not yet reviewed.

A list or connection with no order to fall back on, for which no order is stated: no @defaultOrder, and no @orderBy argument a client must give. The order it falls back on is the primary key of the table its rows are read on; a table with no primary key, or a table-valued function’s result, has none, and a function’s result type is bound to no table unless its own @table binds it. An @orderBy argument a client may leave out states no default, since where it is left out the rows are read in the order the field falls back on; nor does a list-valued one, non-null or not, since a client may send it empty. The list is read inside its parent’s query, by a query of its own at the root or split from its parent, or as a @routine’s result, and over several types' tables each such table is reported. A lookup answers in its keys' order, and a `@service or a write in the order it hands back, so neither is reported.

Next step. Add @defaultOrder naming the result’s columns with fields:, or make a single-valued @orderBy argument non-null. See @defaultOrder constraints.

LIST_OVER_ONE_VALUE

A field declares a list over what its producer hands back once: a service whose method returns one value, or a write returning an object, so there is nothing to list; declare one.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_LIST_OVER_ONE_VALUE

Best-effort guidance, not yet reviewed.

Reported at the field.

The producer hands back one value per call: a @service method whose return type is not a collection, or a @mutation returning an object, which is handed back once however many rows it writes. A list declared over that one value has no elements of its own to list, so graphitron cannot say what it holds.

Next step. Declare the field as a single value, or, for a service, have the method return a collection.

LOOKUP_KEY_NOT_IDENTIFYING

A field below the root returning one table-bound object is looked up by keys that cover no key identifying a row of its table, its primary key or a unique key whose columns refuse NULL, so several rows could match the one value it returns: key it by such a key, or return a list.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_LOOKUP_KEY_NOT_IDENTIFYING

Best-effort guidance, not yet reviewed.

A field below the root returns one @table object, and its keys cover no key identifying a row of its table, its primary key or a unique key whose columns refuse NULL, so several rows could match the one value it returns; the table is named in the detail.

A lookup narrows the field’s rows by the keys the caller passes, each a column of the table the field reads. A key the build cannot state as such a column would narrow by fewer keys than were written and read more rows than asked for, so the build stops instead. The three refusals of a @lookupKey, each at the @lookupKey application, are LOOKUP_KEY_ON_CONNECTION, LOOKUP_KEY_NOT_IDENTIFYING and LOOKUP_KEY_OFF_TABLE.

Next step. Drop @asConnection or @lookupKey; key a single child by its table’s primary key or a unique key whose columns refuse NULL, or return a list; or, for a node id of another node, drop @lookupKey and let the id filter through the foreign key. @lookupKey constraints lists the rules.

LOOKUP_KEY_OFF_TABLE

A @lookupKey argument is a node id of a node on another table than the one the field reads, or takes an input object with such a field that no one foreign key from the field's table carries back to its columns, so it unpacks into no key of the field's rows and there is nothing for it to narrow by: drop @lookupKey, which leaves the id a filter through the foreign key, put the id in an input object the field's table points from, or key on the field's own node.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_LOOKUP_KEY_OFF_TABLE

Best-effort guidance, not yet reviewed.

The argument is a node id of a node on another table than the field reads, or takes an input object with such an id whose columns no one foreign key from the field’s table carries back; the node’s table is named in the detail.

A lookup narrows the field’s rows by the keys the caller passes, each a column of the table the field reads. A key the build cannot state as such a column would narrow by fewer keys than were written and read more rows than asked for, so the build stops instead. The three refusals of a @lookupKey, each at the @lookupKey application, are LOOKUP_KEY_ON_CONNECTION, LOOKUP_KEY_NOT_IDENTIFYING and LOOKUP_KEY_OFF_TABLE.

Next step. Drop @asConnection or @lookupKey; key a single child by its table’s primary key or a unique key whose columns refuse NULL, or return a list; or, for a node id of another node, drop @lookupKey and let the id filter through the foreign key. @lookupKey constraints lists the rules.

LOOKUP_KEY_ON_CONNECTION

A @lookupKey argument sits on a field returning a connection, and a lookup answers the keys it is given where a connection pages through rows, so the two cannot both hold: drop @asConnection or drop @lookupKey.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_LOOKUP_KEY_ON_CONNECTION

Best-effort guidance, not yet reviewed.

The field returns a connection, which pages where a lookup answers the keys it is given.

A lookup narrows the field’s rows by the keys the caller passes, each a column of the table the field reads. A key the build cannot state as such a column would narrow by fewer keys than were written and read more rows than asked for, so the build stops instead. The three refusals of a @lookupKey, each at the @lookupKey application, are LOOKUP_KEY_ON_CONNECTION, LOOKUP_KEY_NOT_IDENTIFYING and LOOKUP_KEY_OFF_TABLE.

Next step. Drop @asConnection or @lookupKey; key a single child by its table’s primary key or a unique key whose columns refuse NULL, or return a list; or, for a node id of another node, drop @lookupKey and let the id filter through the foreign key. @lookupKey constraints lists the rules.

MANY_KEYS_INTO_ONE

A field takes many rows off what its parent holds, a write yielding many or a member delivering a collection, and declares one: declare a list. A @service batches one key per parent, so one taking its keys through a member delivering a collection of them is refused whatever its field declares: give the parent's class a member returning one record.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_MANY_KEYS_INTO_ONE

Best-effort guidance, not yet reviewed.

Reported at the field.

What the parent holds yields many rows for this field: a write taking a list of inputs yields one row per input, and a member of the parent’s object may deliver a collection. A field declaring one value has room for only one of them, and nothing says which.

Next step. Declare the field as a list. A payload re-reading the rows of a bulk @mutation carries them in a list field.

MEMBER_FILLED_TWICE

Two input fields fill one member of one object, and nothing says which value it takes: rename one, or remove one. Node ids decoding into one record member are one record and allowed.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_MEMBER_FILLED_TWICE

Best-effort guidance, not yet reviewed.

Reported at the later of the two input fields, the detail naming the member as Class#member, or the column where the object is a jOOQ record.

An input object built into a Java object hands each input field’s value to one member: a record component, a setter, or a column of a jOOQ record. Two fields reaching the same member, directly or through a grouping, give it two values and no rule for choosing. Node ids decoding into one record member are the exception: they build one record together and are allowed. On a jOOQ record a live field is preferred over a deprecated one, so only two live fields writing one column are refused.

Next step. Rename one of the two fields so it fills a member of its own, or remove one.

MEMBER_UNFILLED

A record an input object is built into has a component no input field fills, and its canonical constructor takes every component, so there is no value to pass: add a field named after the component, its @field(name:) for a @service and its own name for a @condition, or give the record no such component.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_MEMBER_UNFILLED

Best-effort guidance, not yet reviewed.

Reported at the argument or input field the record is built at, naming an unfilled component as Class#component.

An input object built into a Java record is passed to the record’s canonical constructor, which takes every component at once. A component no input field fills, directly or through a grouping, has no value to pass. A class built through setters is not refused: a property nothing sets keeps its default.

MEMBER_UNKNOWN

An input field nothing takes, under the class its input object is built into: it fills no member under the name it matches on, its @field(name:) for a @service and its own name for a @condition, matched exactly, case included, and nothing inside it fills one, is a column a filter compares, a call's parameter or tenant, or carries its own @condition, so its value would reach nothing. Reported once, at the outermost such field: a nested input object none of whose fields binds is the misspelt member, and its fields are not reported. Name a member the class has, or give the class one.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_MEMBER_UNKNOWN

Best-effort guidance, not yet reviewed.

One way to meet it is a filter slot an override suppresses that no condition reads. @condition(override: true) suppresses the implicit column = ? predicate of every argument and input field beneath it, on the understanding that the method stands in for them. The defect then says one of them reaches no parameter of any condition or call on the consuming field: no parameter is bound to it or to anything enclosing it, it carries no @condition of its own, and no bean bound above it has a member for it. A bean’s members match the input’s fields by their GraphQL names, so a member named after the column (setEMAILADRESSE_PRIVAT for @field(name: "EMAILADRESSE_PRIVAT")) does not read it. It is reported once, at the outermost such slot: a nested input object none of whose fields is read is reported at that field. The slot draws ARGUMENT_UNBOUND, or MEMBER_UNKNOWN where its input object is built into a bean.

Next step. Add the member to the bean, named after the GraphQL field; bind the slot another way (a parameter whose argMapping reaches it, or a @condition of its own); or drop override: true so the implicit predicate reads it. The @condition reference covers how beans are bound.

MEMBER_UNRESOLVED

A field read off an object names a member its class does not offer, under its own name or the one @field(name:) gives it: a record offers its components and any other class its get and is getters, so a bare accessor or a public field is no member, and there is nothing to read. Name a member the class offers, or give the class one.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_MEMBER_UNRESOLVED

Best-effort guidance, not yet reviewed.

Reported at the field’s @field where one is written, since that is the name to fix, and at the field otherwise; the detail names the class.

A field below a parent holding a Java object is read off that object by a member of its class. Graphitron reads a record by its components and any other class by its get and is getters; a bare accessor such as title() on a class that is not a record, or a public field, is not one of them. With no member of the field’s name, there is nothing to read. A type also reached as a row is judged on its object: the row reading the field as a column does not read it off the object. A jOOQ record, a generated table record of any catalog among them, is read through the Record API rather than by its getters and is not judged here; nor is a class whose supertypes reach one the build does not hand Graphitron, which is `CLASS_SUPERTYPE_NOT_READ’s.

Next step. Name a member the class offers, with @field(name:) or by renaming the field, or add a getter or record component to the class.

MINTED_NAME_CONTESTED

A name @asConnection would mint is coined more than one way, a type in two roles or a field or argument in two shapes, so graphitron mints none of them: give the connections distinct names, or their carriers one element type.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_MINTED_NAME_CONTESTED

Best-effort guidance, not yet reviewed.

Reported at each @asConnection that coins the name, naming the first contested coordinate it coins, by name, in the detail.

Graphitron generates the Connection, Edge and PageInfo types and their fields for each @asConnection field, and several fields may generate the same name, which is fine as long as they all describe it the same way. Two shapes make them disagree:

  • Two fields share a connectionName: over different element types, so the shared Connection’s nodes and its Edge’s node would have two types:

    type Query {
      films: [Film!]! @asConnection(connectionName: "Shared")
      tongues: [Language!]! @asConnection(connectionName: "Shared")
    }

    Both fields draw the code, each naming Shared.nodes; SharedEdge.node.

  • A connectionName: names a type the same field also generates in another role, such as @asConnection(connectionName: "PageInfo"): the Connection and the page info would be one type.

Graphitron generates none of the contested names rather than picking one, and stops the build.

Next step. Give the connections distinct names, usually by dropping the deprecated connectionName: so each field gets its own, or give the fields sharing one name the same element type. @asConnection constraints lists the rules.

MINTED_TYPE_DECLARED_SHORT

A type @asConnection would generate is declared in the schema, so graphitron uses the declaration, and the declaration lacks a field the shape requires or gives one the wrong type: Relay's edges and pageInfo on a connection, node and cursor on an edge and the four page-info fields, and graphitron's own facets shape where the connection has facets. Add or correct the field, or remove the declaration and let graphitron generate the type.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_MINTED_TYPE_DECLARED_SHORT

Best-effort guidance, not yet reviewed.

Reported at each @asConnection that asks for the type, naming the type and what it lacks in the detail.

Where the schema declares a Connection, Edge, PageInfo or facets type that an @asConnection field would otherwise generate, graphitron uses the declaration as written and checks it against what the shape requires. Where the Relay Cursor Connections specification states the shape, that is the requirement and nothing more: edges (a list) and pageInfo (PageInfo!) on a connection, node and cursor (neither a list) on an edge, and hasNextPage: Boolean!, hasPreviousPage: Boolean!, startCursor and endCursor on PageInfo. nodes and totalCount are optional. Where no external specification exists, the facets type of a connection with facets and its value types, graphitron’s own shape is the requirement. For example:

type Query {
  films: [Film!]! @asConnection
}

type QueryFilmsConnection {
  edges: [QueryFilmsConnectionEdge!]!
}

draws the code at the @asConnection, reading QueryFilmsConnection lacks pageInfo. A connectionName: naming a type that is not a connection at all, such as the element type itself (@asConnection(connectionName: "Film")), draws it too, the detail listing every field the type lacks.

Next step. Add or correct the fields the detail names, or remove the declaration and let graphitron generate the type. @asConnection constraints lists the rules.

MULTIPLE_ERRORS_FIELDS

A type has more than one list of errors, and what a producer catches arrives at one: keep one.

Severity

error

Basis

GRAPHITRON

Editor code

graphitron.error-channel.multiple-errors-fields

Best-effort guidance, not yet reviewed.

Reported at the first of the type’s errors fields.

What a @service, write or routine catches is routed to the one errors field of the type it hands back, a list of @error types or of a union or interface over them. With two such fields, nothing says which one the errors arrive at.

Next step. Keep one errors field, merging the error types into one union if both are needed. The error channel how-to describes the carrier shapes.

MULTIPLE_ROUTINE_NODES

A mutation field carrying more than one @routine writes more than once, and the generator emits one write per field.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_MULTIPLE_ROUTINE_NODES

Best-effort guidance, not yet reviewed.

Reported at the last @routine written on the field.

On a mutation field the routine call is the write, and the generated fetcher runs one write and then re-reads its committed rows. Each @routine is a write of its own, so a field carrying two would write twice, and graphitron emits one write per field.

Next step. Keep one @routine on the field, and combine the work in one database function if both writes belong together, or move the second write to a field of its own. See Writes on Mutation.

MUTATION_WITHOUT_VERB

@mutation names the write graphitron generates by its typeName, and without one there is no write to generate.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_MUTATION_WITHOUT_VERB

Best-effort guidance, not yet reviewed.

Reported at the @mutation.

The typeName of a @mutation is the SQL statement graphitron generates for the field; without one there is no write to generate.

Next step. Write the kind of write the field performs, for example @mutation(typeName: INSERT), UPDATE or DELETE. @mutation describes each.

NODE_FETCHER_WITHOUT_ID

A query-root field returning Node is a node fetcher, which decodes its argument named id, or ids where it returns a list, and this field has none; name the argument id (ids for a list), or write a @service to run something else.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_NODE_FETCHER_WITHOUT_ID

Best-effort guidance, not yet reviewed.

Reported at the field, the detail naming the argument it lacks.

A query-root field returning the Node interface is a node fetcher: it decodes the opaque ids it is handed and reads each node off its own table. Which argument holds them is fixed by name, as Relay has it: id on a field returning one node, ids on a field returning a list. This field has no argument of that name, so no id would reach it.

Next step. Name the argument id, or ids for a list, as in node(id: ID!): Node. To run something else under a Node return, write a @service on the field. See @node.

NODE_ID_CONTAINER_NOT_AT_A_SLOT

A @nodeId(typeName:) names an interface or union, which an id decodes per member only into a @service parameter, and here the value reaches none: name one node type, or move the polymorphic id to the @service input.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_NODE_ID_CONTAINER_NOT_AT_A_SLOT

Best-effort guidance, not yet reviewed.

Reported at the @nodeId, the detail naming the interface or union.

An id of an interface or union is decoded per member: the generated fetcher reads the id’s type prefix and builds that member’s own record, which only a Java slot typed as a record supertype can receive. Anywhere else the value binds a predicate or is encoded, and those need the key of one node type; an output field has nothing to encode from either.

Next step. Name one node type in typeName:, or move the polymorphic id to an argument or input field a @service takes. See Decoding an id of any implementation into a record supertype.

NODE_ID_CONTAINING_TYPE_NOT_NODE

A bare @nodeId on a field with no @reference inherits its node from the type the field is declared on, and that type is not a node, so the id has no node to identify: write typeName: or make the type a node.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_NODE_ID_CONTAINING_TYPE_NOT_NODE

Best-effort guidance, not yet reviewed.

Reported at the @nodeId, the detail naming the type the field is declared on.

A @nodeId without typeName: on an output field with no @reference takes its node from the type it is declared on, encoding that type’s own key. The type is no node, so there is no type id or key to encode.

Next step. Write typeName: naming the node the id belongs to, adding a @reference path where that node’s row is another table’s, or make the declaring type a node with @node and implements Node.

NODE_ID_KEY_ARITY_EXCEEDS_SLOT

A @nodeId's decoded key goes whole to a @service or @condition parameter, or each element of one, that is neither the node's record nor a tuple of its key, or to a @routine parameter named for the argument, which takes one value, and a whole key lands only on those: declare the parameter as the node's record, or as a RecordN or RowN of the key's columns' types, or take one key column with argMapping.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_NODE_ID_KEY_ARITY_EXCEEDS_SLOT

Best-effort guidance, not yet reviewed.

Reported at the @nodeId, the detail naming the parameter or bean member.

A decoded node id is the node’s whole key, and graphitron never hands the opaque id string on. A whole key lands only on the node type’s own generated record or on a jOOQ RecordN or RowN of the key’s columns; a slot holding one value, such as Integer or String, is refused whatever the key’s arity, and so is a class the classpath scan cannot name. A @routine parameter always holds one value, so a node id it takes by the argument’s name, with no argMapping entry, is refused the same way.

Next step. Declare the parameter or member as the node’s record or a tuple of its key columns' types, or take one key column with an argMapping entry such as id: key.film_id. See Decoding into a producer parameter named for the argument.

NODE_ID_KEY_COLUMN_TYPE_DISAGREEMENT

The key column an argMapping path projects out of a @nodeId's node has a jOOQ type that is not the type of the parameter of the @service or @condition method, or the @routine, it goes to: declare the parameter with the column's own type, boxed, or project a key column the routine parameter takes.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_NODE_ID_KEY_COLUMN_TYPE_DISAGREEMENT

Best-effort guidance, not yet reviewed.

Reported at the @service or @condition reference, or at the @routine, the detail naming the key column, its type and the type the parameter declares.

An argMapping path opening a node id with one of its key columns hands that column’s own decoded value to the parameter, compared without widening; for a list of ids it hands a List of the column’s values. A parameter of another type cannot receive it.

Next step. Declare the parameter with the type jOOQ binds the column as, boxed, or as a List of it for a list of ids. See Projecting one key column into an argMapping parameter.

NODE_ID_KEY_TUPLE_TYPE_DISAGREEMENT

A @nodeId's decoded key goes to a @service parameter typed as a jOOQ RecordN or RowN of the key's degree whose type arguments are not the key columns' types in key order: declare the tuple with the columns' own types.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_NODE_ID_KEY_TUPLE_TYPE_DISAGREEMENT

Best-effort guidance, not yet reviewed.

Reported at the @nodeId, the detail naming the parameter or bean member.

A jOOQ RecordN or RowN of the key’s degree takes a decoded key only where each type argument is the type jOOQ binds the corresponding key column as, in key order, because the tuple is filled position by position from the key.

Next step. Type the tuple with the key columns' own types in key order, for example Record2<Integer, Integer>, or take the node type’s own generated record instead. See Decoding into a producer parameter named for the argument.

NODE_ID_LANDING_TYPE_DISAGREES

A @nodeId(typeName:) decodes into a key column of the node's table that jOOQ binds as another Java type than the column of the slot's table it lands on, so no predicate compares the two: give both columns the same binding, or write a @reference path to the node's own table.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_NODE_ID_LANDING_TYPE_DISAGREES

Best-effort guidance, not yet reviewed.

Reported at the @nodeId, the detail naming the node’s key column.

With no path written, graphitron decodes the id through the one foreign key joining the slot’s table to the node’s, comparing each decoded key value with the column of the slot’s table that the foreign key pairs it with. Here jOOQ binds the two columns as different Java types, for example where one carries a converter, so the generated predicate cannot compare them.

Next step. Give both columns the same jOOQ binding, or write a @reference path that ends on the node’s own table, so the id is compared with the node’s key itself.

NODE_ID_LANDS_ON_TABLE

A node id reaches a table other than the node's: a written path ending elsewhere, or no path where no one foreign key joins the slot's table to the node's, so the key the id carries is not on the rows read, nor on the columns of the jOOQ record it is decoded into. Write or correct the @reference path to end on the node's table.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_NODE_ID_LANDS_ON_TABLE

Best-effort guidance, not yet reviewed.

Reported at the @nodeId, or at the argument or input field where the id is read without one; the detail names the table the path reaches, or the slot’s or record’s table where there is no path.

The id carries the key of its node’s table, so it can only be encoded from, compared with, or loaded into columns that path leads back to. Three shapes miss: a written path ending on another table; no path where no one foreign key joins the slot’s table to the node’s, in either direction; and, for an id built into a jOOQ record, no single foreign-key step from the record’s table that carries every key column back. A filter compares the id on each table its field’s rows are on, so a bare @nodeId whose one node sits on another table than a participant’s, with no path from that participant landing on it, misses as well; so does a named id a @condition takes through its argMapping without override: true, which the filter still compares.

Next step. Write or correct the @reference path so it ends on the node’s table, naming the foreign key where several connect the tables. See @nodeId.

NODE_ID_MEMBER_NOT_NODE_TYPE

A @nodeId(typeName:) names an interface or union with a table-bound member that is not a @node type, so an id of that member cannot be decoded: annotate the member with @node.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_NODE_ID_MEMBER_NOT_NODE_TYPE

Best-effort guidance, not yet reviewed.

Reported at the @nodeId, the members it concerns named beneath it.

An id of an interface or union is decoded per member, against the member’s own type id and key. A member bound to a table that is not a node has neither, so its ids cannot be told apart from the others' or decoded.

Next step. Make each such member a node, with @node and implements Node, or name a type whose table-bound members are all nodes. See Decoding an id of any implementation into a record supertype.

NODE_ID_NOT_ID_TYPE

A @nodeId sits on a slot whose type is not ID, and every encode and decode is an ID's, so the directive would bind the wire value undecoded: change the type to ID or remove the directive.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_NODE_ID_NOT_ID_TYPE

Best-effort guidance, not yet reviewed.

Reported at the @nodeId, the detail naming the type written.

@nodeId encodes a key into an opaque ID on the way out and decodes one on the way in, so the slot it marks must be ID, ID! or a list of them. On any other type the wire value would be bound undecoded.

Next step. Change the slot’s type to ID, or remove the directive if the field carries a plain value. See the constraints of @nodeId.

NODE_ID_NO_TABLE_MEMBERS

A @nodeId(typeName:) names an interface or union none of whose members carries @table, so no member has a key to decode its id against: name a node type, or give its members tables.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_NODE_ID_NO_TABLE_MEMBERS

Best-effort guidance, not yet reviewed.

Reported at the @nodeId.

An id of an interface or union is decoded per member against the member’s table and key. None of the members named here is bound to a table, so no member has a key to decode an id against.

Next step. Name a node type, or an interface or union whose members carry @table and are nodes. See Decoding an id of any implementation into a record supertype.

NODE_ID_SHADOWS_COLUMN

An id with no directive is read as a node's id, and the node's table also has a column of that name: the encoded id and the raw column are different values and the SDL has not said which is meant. Write @nodeId to select the node id, or @field(name:) to select the column.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_NODE_ID_SHADOWS_COLUMN

Best-effort guidance, not yet reviewed.

The type is a node, so its id field is a candidate for the encoded global ID; the bound table also has a column of that name, so it is equally a candidate for that column’s value. Both readings are legitimate and they are different values on the wire, so graphitron refuses to pick one for you. The node identity may come from a table publishing \__NODE_TYPE_ID / \\__NODE_KEY_COLUMNS, or from a type that declared @node explicitly over its table.

Next step. Write the reading you meant on the field. @nodeId publishes the encoded global ID; @field(name: "id") exposes the raw column, at the cost of that type no longer round-tripping through Query.node(id:). The @node reference covers both.

NODE_ID_SINGLE_TABLE_CONTAINER

A @nodeId(typeName:) names an interface or union that carries @table itself, so its id has one table and no members to decode against: name one of its node types, or make it a @node type.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_NODE_ID_SINGLE_TABLE_CONTAINER

Best-effort guidance, not yet reviewed.

Reported at the @nodeId.

The polymorphic decode reads the id’s type prefix and decodes into that member’s own table. An interface carrying @table itself, such as a single-table @discriminate interface, binds one table and has no per-member tables to decode into.

Next step. Name one of its node types in typeName:, or make the interface a node type itself.

NODE_ID_SLOT_NOT_SUPERTYPE_OF_MEMBER

A @nodeId(typeName:) naming an interface or union decodes into a @service parameter or bean member that a member's record is not, so that member's id cannot be handed over: declare it as a type every member's record is, such as org.jooq.Record or TableRecord<?>.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_NODE_ID_SLOT_NOT_SUPERTYPE_OF_MEMBER

Best-effort guidance, not yet reviewed.

Reported at the @nodeId, the members whose records do not fit named beneath it.

At a @service parameter or bean member, an id of an interface or union is decoded into whichever member’s generated record it names, so the slot’s Java type must accept every member’s record. A slot typed as one member’s record, or as anything another member’s record is not, cannot receive the others.

Next step. Type the slot as a supertype of every member’s record: org.jooq.Record, TableRecord<?>, UpdatableRecord<?> where every member’s table has a primary key, or an interface your jOOQ configuration makes the records implement. To take one member only, name that member in typeName:. See Decoding an id of any implementation into a record supertype.

NODE_ID_SLOT_SHAPE_MISMATCH

A @nodeId's decoded value goes to a @service parameter whose shape is not the argument's, a list where one id arrives, one value where a list does, or a collection other than java.util.List: declare the parameter in the argument's shape.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_NODE_ID_SLOT_SHAPE_MISMATCH

Best-effort guidance, not yet reviewed.

Reported at the @nodeId, the detail naming the parameter.

A decoded id reaches the @service parameter in the argument’s own shape: one value for one id, a java.util.List for a list of ids. A list parameter where one id arrives, a single value where a list does, or another collection such as a Set, cannot be filled.

Next step. Declare the parameter in the argument’s shape, using List for a list of ids, or change the argument’s list wrapping to match the method.

NODE_ID_TARGET_AMBIGUOUS

A node id inferred from a table binds against a table several node types declare themselves over, or under participants that resolve different nodes where one id cannot stand for all, so which node the id names is not said: name the node type.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_NODE_ID_TARGET_AMBIGUOUS

Best-effort guidance, not yet reviewed.

Reported at the @nodeId, at an input field named id that carries no directive, or at the @mutation for a write’s ID return; the detail names an occurrence.

An id written without typeName: takes its node from a table: the record a @service slot takes, else the table the slot binds against. Here that table is one several node types declare themselves over, or the occurrences reach different nodes, and each node has its own type id and key, so nothing says which one the id is.

Next step. Name the node type with @nodeId(typeName:). See Several node types over one table.

NODE_ID_TARGET_UNRESOLVED

A node id inferred from a table binds against a table no node type declares itself over, or, at a slot a @service takes, against no table at all, the slot taking no table's record and the field returning none: there is no node to infer. Name the node type with typeName:, or declare @node on a type over the table.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_NODE_ID_TARGET_UNRESOLVED

Best-effort guidance, not yet reviewed.

Reported at the @nodeId, or at the @mutation for a write’s ID return; the detail names an occurrence.

An id written without typeName: takes its node from a table: the record a @service slot takes, else the field’s return table, else the table @mutation(table:) names. Here that table is one no node type declares itself over, or there is no table at all, so there is no type id or key to decode against.

Next step. Name the node type with @nodeId(typeName:), or declare a node over the table with @node. See Decoding into a producer parameter named for the argument.

NODE_ID_TYPE_NAME_NOT_NODE

A @nodeId(typeName:) names a type that is neither a node nor an interface or union over nodes, so there is no key to encode or decode the id against.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_NODE_ID_TYPE_NAME_NOT_NODE

Best-effort guidance, not yet reviewed.

Reported at the @nodeId, the detail naming the type as written.

The id is encoded and decoded against the named type’s type id and key columns, which only a node has, or, for an interface or union, its member nodes. The name given is neither, possibly a misspelling or a type that does not exist.

Next step. Name a node type, or make the named type a node with @node and implements Node. The editor completes typeName: against the node types of the schema.

NODE_ID_TYPE_NAME_ON_OWN_ID

A @nodeId(typeName:) sits on a node type's own id field, which is that node's identity by construction, so the argument names what the type already answers: remove it.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_NODE_ID_TYPE_NAME_ON_OWN_ID

Best-effort guidance, not yet reviewed.

Reported at the @nodeId, the detail naming the node type.

A node type’s own id field is that node’s id by construction, so typeName: there can only repeat what the type already answers.

Next step. Remove typeName:. The directive itself is optional on a node’s own id field. See @nodeId.

NODE_ID_TYPE_NAME_UNDECLARED_STUB

A @nodeId(typeName:) names a @table type that is no node, over a table whose class publishes node metadata, the shape of an entity another subgraph owns: declare it @node(resolvable: false), which makes it a node for its id that this subgraph does not fetch.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_NODE_ID_TYPE_NAME_UNDECLARED_STUB

Best-effort guidance, not yet reviewed.

Reported at the @nodeId, the detail naming the type as written.

The named type is a @table type over a table whose generated class publishes node metadata, but it is not a node. That is the shape of an entity another subgraph owns: this subgraph decodes its ids without fetching it.

Next step. Declare the type @node(resolvable: false) and implements Node, which makes it a node for its id that this subgraph does not resolve. See Nodes this subgraph does not resolve.

NODE_KEY_COLUMN_UNRESOLVED

A @node(keyColumns:) names a column the bound table does not have, or has twice under one name, so the node has no key the author can stand behind: a pinned key is a published wire format, and the generator will not quietly encode ids against another.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_NODE_KEY_COLUMN_UNRESOLVED

Best-effort guidance, not yet reviewed.

Reported at the @node, the detail naming the first column, in the order written, that does not resolve.

Each keyColumns entry must name exactly one column of the bound table, matched against its SQL name or its generated jOOQ name, ignoring case. The pinned key is the published wire format of the node’s ids, so graphitron does not fall back to another key when one entry fails.

Next step. Correct the spelling to a column of the table, or remove keyColumns to key the node by what the table class publishes or by its primary key. See @node.

NODE_LEGACY_KEY_COLUMN_UNRESOLVED

A @node(legacyKeyColumns:) names a column the bound table does not have, or has twice under one name, so ids issued in the old shape cannot be read against it.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_NODE_LEGACY_KEY_COLUMN_UNRESOLVED

Best-effort guidance, not yet reviewed.

Reported at the @node, the detail naming the spelling that does not resolve.

A legacy key shape lists the columns ids were encoded from before the key was narrowed, and graphitron reads an old id by matching each of its values to one of those columns. An entry that names no column of the bound table, or names two, leaves a value with no column to read it as.

Next step. Correct the entry to the column the old ids carried. See Narrowing the key.

NODE_LEGACY_KEY_DISAGREES_WITH_METADATA

A @node(legacyKeyColumns:) and the table class's __NODE_LEGACY_KEY_COLUMNS state different lists; the order is the wire format of ids already issued, so they must be the same columns in the same order.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_NODE_LEGACY_KEY_DISAGREES_WITH_METADATA

Best-effort guidance, not yet reviewed.

Reported at the @node, the detail listing the columns.

Both the schema and the table’s generated class state the legacy key shape here, as legacyKeyColumns and as \\__NODE_LEGACY_KEY_COLUMNS. The order of that list is the order of the values inside ids already issued, so two different lists would read the same old id two ways.

Next step. Make legacyKeyColumns the same columns in the same order as the class, or remove it and let the class’s list stand. See Narrowing the key.

NODE_LEGACY_KEY_MISSES_KEY_COLUMN

A legacy key shape leaves out a column of the current key, so an id in the old shape cannot be converted without reading the row; list every current key column in it.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_NODE_LEGACY_KEY_MISSES_KEY_COLUMN

Best-effort guidance, not yet reviewed.

Reported at the @node, or at the @table where the table class states the shape; the detail names the missing current key column.

An id in the legacy shape is converted to the current one by picking the current key’s values out of it, without reading the row. A current key column the legacy shape leaves out has no value to pick.

Next step. List every keyColumns column in the legacy shape, in the position the old ids carried it. Where the table class states the shape, fix the generator configuration that writes it. See Narrowing the key.

NODE_LEGACY_KEY_REORDERS_KEY

A legacy key shape holds exactly the current key's columns, so an old id and a current one cannot be told apart by how many values they carry; a legacy shape must be the current key plus at least one more column.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_NODE_LEGACY_KEY_REORDERS_KEY

Best-effort guidance, not yet reviewed.

Reported at the @node, or at the @table where the table class states the shape; the detail lists the legacy columns.

Graphitron tells an old id from a current one by how many values it carries. A legacy shape holding exactly the current key’s columns, only in another order, carries as many values as a current id, so the two cannot be told apart.

Next step. A legacy shape is for a key that was narrowed, so it is the current key plus at least one more column. If the old ids carried only the current key’s columns, drop the legacy shape and keep keyColumns in the order the old ids carry them, since the order is part of the wire format. See Narrowing the key.

NODE_LEGACY_KEY_REPEATS_COLUMN

A legacy key shape names one column twice, so the conversion cannot tell which of its values is the column's.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_NODE_LEGACY_KEY_REPEATS_COLUMN

Best-effort guidance, not yet reviewed.

Reported at the @node, or at the @table where the table class states the shape; the detail names the repeated column.

Each position of the legacy shape is one value inside an old id, read as the column at that position. A column named twice has two values in an old id, and the conversion cannot tell which is the column’s.

Next step. Name each column once, in the order the old ids carry them. See Narrowing the key.

NODE_LEGACY_METADATA_UNREADABLE

The table's generated class declares __NODE_LEGACY_KEY_COLUMNS graphitron cannot use, and no fallback reads ids issued in the old shape; fix the generator configuration that writes it.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_NODE_LEGACY_METADATA_UNREADABLE

Best-effort guidance, not yet reviewed.

Reported at the @table of each type bound to the table, the detail naming the table.

The table’s generated class declares \\__NODE_LEGACY_KEY_COLUMNS, and graphitron cannot use what it declares, for example a column of another table. Unlike unreadable node metadata, nothing falls back for a legacy shape, and every stored id in the old shape would fail to decode at runtime, so the build stops.

Next step. Fix the jOOQ generator configuration that writes the field on the table class, and regenerate the catalog.

NODE_LEGACY_TYPE_ID_SHARED

A type id with a legacy key shape is answered to by types over different tables or with different current keys, so converting an id of it would rewrite ids another type owns; give the types their own type ids.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_NODE_LEGACY_TYPE_ID_SHARED

Best-effort guidance, not yet reviewed.

Reported at the @table of each type sharing the type id, the detail naming the type id.

A legacy shape belongs to a type id, since an id names its id space only by its type id. Here types over different tables, or with different current keys, answer to that type id, so converting an old id of it would rewrite ids another type owns.

Next step. Give the types their own type ids with @node(typeId:), keeping the type id the old ids were issued under on the type the legacy shape belongs to. See Narrowing the key.

NODE_METADATA_UNREADABLE

The table's generated class declares node metadata graphitron cannot use, so a node over it encodes its ids from what the schema declares, or from the type's name and the table's primary key; fix the generator configuration that writes __NODE_TYPE_ID and __NODE_KEY_COLUMNS.

Severity

warning

Basis

GRAPHITRON

Editor code

GRAPHITRON_NODE_METADATA_UNREADABLE

Best-effort guidance, not yet reviewed.

Reported at the @table of each type bound to the table, the detail naming the table. A warning: the build continues.

The table’s generated class declares node metadata, \__NODE_TYPE_ID and \\__NODE_KEY_COLUMNS, that graphitron cannot use, for example a type id without key columns. A node over the table then takes its identity from what the schema declares, else from the type’s name and the table’s primary key, which may not be the ids the class meant.

Next step. Fix the jOOQ generator configuration that writes the metadata, and regenerate the catalog. @node describes how a node’s identity is resolved.

NODE_TYPE_ID_SHARED

Two node types answer to one type id, so an id carrying it names either and Query.node cannot tell which to fetch; give one of them its own with @node(typeId:).

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_NODE_TYPE_ID_SHARED

Best-effort guidance, not yet reviewed.

Reported at the @table of each type sharing the type id, the detail naming the type id.

Every id a node mints starts with its type id, and Query.node dispatches on it to the type and table to fetch. The type id may be written with typeId:, defaulted to the type’s name, or taken from the table class’s metadata; two node types ending up with the same one mint ids that name either.

Next step. Give one of the types its own type id with @node(typeId:). Keep the one already issued to clients where ids are stored, since changing it invalidates them.

NODE_WITHOUT_KEY

A @node pins no key columns, and its table publishes no node metadata and has no primary key, so there is nothing to build an id from: declare keyColumns on @node or give the table a primary key.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_NODE_WITHOUT_KEY

Best-effort guidance, not yet reviewed.

Reported at the @node, the detail naming the table.

A node’s id encodes its key columns, taken in turn from keyColumns on @node, from the node metadata the table’s generated class publishes, and from the table’s primary key. All three are missing here, as for a view, so there is nothing to build an id from.

Next step. Name the columns with @node(keyColumns:); they must form a primary key or another unique key of the table. Or give the table a primary key. See @node.

NODE_WITHOUT_NODE_INTERFACE

A type carries @node and does not implement the Relay Node interface, which is the contract @node publishes to clients, a node this subgraph does not resolve included, so the type cannot be promoted to a node: add implements Node.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_NODE_WITHOUT_NODE_INTERFACE

Best-effort guidance, not yet reviewed.

Reported at the @node.

implements Node is what declares a type a node to clients: it lets Query.node return the type and holds it to an id field. @node only supplies the identity parameters, and cannot promote a type that does not implement the interface, a @node(resolvable: false) included.

Next step. Add implements Node to the type, or remove @node if the type is not meant to be a node. See @node.

NODE_WITHOUT_TABLE

A type carries @node and no @table. A node is a row of a table, its id encoding that row's key, so a type bound to no table has nothing to be a node of.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_NODE_WITHOUT_TABLE

Best-effort guidance, not yet reviewed.

Reported at the @node.

A node is a row of a table and its id encodes that row’s key, so a type bound to no table has no key to encode and no table for Query.node to fetch from.

Next step. Bind the type to its table with @table, or remove @node.

NO_KEY_FROM_PARENT

A field fetches its own rows in a query of its own, and nothing the parent holds keys those rows: under a parent holding an object, no column of a record and no member returning one; under a parent's table row, a routine none of whose parameters is bound to one of its columns.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_NO_KEY_FROM_PARENT

Best-effort guidance, not yet reviewed.

Reported at the field. Where a @service takes the keys, the detail names the parent’s class; where a @routine is called, the parent’s table.

Under a parent holding an object of a class rather than a table’s row, a field that fetches its own rows takes their keys off that object: its own columns where it is a jOOQ record, otherwise a member of its class returning records of the table the field reads. A class with no such member hands over no key, so there is nothing to batch the fetch by.

Next step. Give the parent’s class a member returning records of the field’s table. See the @service constraints.

Under a parent’s table row, a @routine fetched in a query of its own, as a child connection always is, is called once for the whole batch of parents, and its rows are told apart by the parent row each call took a value from. A routine none of whose parameters is bound to one of the row’s columns takes nothing from it, so nothing tells its rows apart by parent. Where the path steps through a table before the routine, that step keys it instead.

Next step. Bind a parameter to a column of the parent’s row in argMapping, as pActorId: $source.actor_id. See @routine.

NO_ROUTE_FROM_DEPARTURE

A chain link resolves to a route and none of its routes departs the table the chain is standing on, so the link cannot follow the one before it.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_NO_ROUTE_FROM_DEPARTURE

Best-effort guidance, not yet reviewed.

Reported at the path element that has no move; for a path inherited from an interface, at the interface’s element. Where a condition alone takes any table as its second parameter, the detail says so.

A path is walked one element at a time, each departing the table the walk stands on: the parent’s table for the first element, and wherever the one before arrived for the rest. An element naming a key between two other tables, or a condition method taking neither table, has nowhere to go from there. A key naming a table’s own primary key is a self-join, which moves only as the one element of a field reading one row.

Next step. Correct the element so it departs the table the previous one arrived at, writing the elements in the direction the join runs. Type a condition method’s second parameter with the table it joins to. See Path rules.

NO_ROUTE_TO_TARGET

A path does not arrive at the table the field's rows were said to come from: a chain runs to its last link and arrives somewhere else, or a field with no path written starts on a table that shares no foreign key with its target's, or on its target's own table, so there is no join to infer and the path has to be written. A filter argument or input field whose column is on another table than the rows it filters, with no path written to it, has no route either.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_NO_ROUTE_TO_TARGET

Best-effort guidance, not yet reviewed.

Reported at the element of the path’s last step where a path is written, and at the field’s declaration where none is, the detail then naming the two tables. Where the path ends on a @routine, it is reported at the @routine. A filter argument or input field whose column is on another table than the rows it filters, with no path to it, is reported at the argument or input field, the detail naming the two tables.

A field’s rows come from the table its type is bound to, so its path has to arrive there. A written path whose every element was walked can still end on another table. An inferred one joins two tables over the one foreign key between them, and with none, or with both ends one table, there is nothing to infer. From a routine’s result the join is on the target’s primary-key columns matched by name, so a result lacking one of them has no route either. An argument of a root field returning an interface with a table of its own starts on the interface’s table and lands on each member’s, and no join is inferred for an argument.

Next step. Write or correct the path with @reference so it ends on the field’s table. To read the parent’s own row, name its primary key or a self-referencing key with {key:}, as the detail suggests. For a routine, expose the primary-key columns in its result. See Path rules.

ORDER_FIELDS_EMPTY

A @defaultOrder or @order sorts by fields and names none, so the read it orders states no order: name at least one field, or write index or primaryKey: true instead.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_ORDER_FIELDS_EMPTY

Best-effort guidance, not yet reviewed.

The application writes fields: [], a fields list naming nothing, so the read it orders has no column to sort by and would arrive in whatever order the database returns.

Each list is read in an order the build states: the one @defaultOrder writes, the primary key of the table the list’s type is bound to where none is written, or the one a client picks through @orderBy. Where that table has no primary key, or the type is a function’s result bound to no table, there is nothing to fall back on, and an @orderBy argument a client may leave out needs a @defaultOrder beside it. An ordering whose keys cannot be stated would sort by fewer keys than were written, or by none, so the build stops instead. An ordering is refused at the @defaultOrder, @order, @orderBy or fields element written, or at the list field; an index the table does not have is ELEMENT_UNRESOLVED, and a fields element’s name matching no one column of the table is COLUMN_UNRESOLVED, the codes every name claimed in vain and every missing column draw.

Next step. Write one surface, name a column, index or primary key the table has, or add @defaultOrder to the list. For a path, name keys that join to one row each, from the field’s table onward, and a column of the table it lands on, or sort by a method instead. @defaultOrder constraints and @order list the rules.

ORDER_FIELD_SHAPE

A fields element of an ordering writes neither or both of name and method, or a path beside a method, so it names no one key: write a name, optionally with a path, or a method.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_ORDER_FIELD_SHAPE

Best-effort guidance, not yet reviewed.

A fields element writes neither or both of name and method, or a path beside a method.

Each list is read in an order the build states: the one @defaultOrder writes, the primary key of the table the list’s type is bound to where none is written, or the one a client picks through @orderBy. Where that table has no primary key, or the type is a function’s result bound to no table, there is nothing to fall back on, and an @orderBy argument a client may leave out needs a @defaultOrder beside it. An ordering whose keys cannot be stated would sort by fewer keys than were written, or by none, so the build stops instead. An ordering is refused at the @defaultOrder, @order, @orderBy or fields element written, or at the list field; an index the table does not have is ELEMENT_UNRESOLVED, and a fields element’s name matching no one column of the table is COLUMN_UNRESOLVED, the codes every name claimed in vain and every missing column draw.

Next step. Write one surface, name a column, index or primary key the table has, or add @defaultOrder to the list. For a path, name keys that join to one row each, from the field’s table onward, and a column of the table it lands on, or sort by a method instead. @defaultOrder constraints and @order list the rules.

ORDER_INPUT_SHAPE

An @orderBy argument's type is not an input object with exactly one field typed as an enum whose values carry @order or @index and exactly one other enum field, the direction, so it offers the client no order to pick: give the input type one of each, told apart by type rather than name.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_ORDER_INPUT_SHAPE

Best-effort guidance, not yet reviewed.

An @orderBy argument’s type has other than exactly one sort enum field and exactly one other enum field, the direction; the type is named in the detail.

Each list is read in an order the build states: the one @defaultOrder writes, the primary key of the table the list’s type is bound to where none is written, or the one a client picks through @orderBy. Where that table has no primary key, or the type is a function’s result bound to no table, there is nothing to fall back on, and an @orderBy argument a client may leave out needs a @defaultOrder beside it. An ordering whose keys cannot be stated would sort by fewer keys than were written, or by none, so the build stops instead. An ordering is refused at the @defaultOrder, @order, @orderBy or fields element written, or at the list field; an index the table does not have is ELEMENT_UNRESOLVED, and a fields element’s name matching no one column of the table is COLUMN_UNRESOLVED, the codes every name claimed in vain and every missing column draw.

Next step. Write one surface, name a column, index or primary key the table has, or add @defaultOrder to the list. For a path, name keys that join to one row each, from the field’s table onward, and a column of the table it lands on, or sort by a method instead. @defaultOrder constraints and @order list the rules.

ORDER_POSITIONS_DISAGREE

An ordering of a read whose rows are several tables' sorts every table's rows together by position, and the tables' keys differ in number, or at one position in their SQL or bound Java type, so no one sort column holds them all: name columns of one type in the same places on every participant.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_ORDER_POSITIONS_DISAGREE

Best-effort guidance, not yet reviewed.

Reported at each @defaultOrder or @order whose order is read over several participant tables, the field named in the detail. A root list over a union or interface with no table of its own reads one branch per participant table and sorts the branches together, position by position: the first sort key of every participant in one column, the second in the next, and so on.

So every participant’s order has to name the same number of keys, and at each position columns of one SQL type bound to one Java type. Their names may differ: an index of one name covering event_id on one table and note_id on the other, both integers, sorts together. Columns that differ in type at a position, an integer beside a boolean, have no one column to sort in, and an index covering one column on one table and two on another leaves a position with nothing on one side.

Instead. Name columns of one type in the same places on every participant, for example a column every participant table holds at one type, or give the indexes the order names the same shape on each table. An order by every participant’s own primary key is compared by the keys instead. See How-to: Sort across polymorphism.

ORDER_PRIMARY_KEY_MISSING

An ordering sorts by the primary key of a table that has none, so there is nothing to sort by: name the columns with fields, or an index.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_ORDER_PRIMARY_KEY_MISSING

Best-effort guidance, not yet reviewed.

primaryKey: true over a table with no primary key, named in the detail.

Each list is read in an order the build states: the one @defaultOrder writes, the primary key of the table the list’s type is bound to where none is written, or the one a client picks through @orderBy. Where that table has no primary key, or the type is a function’s result bound to no table, there is nothing to fall back on, and an @orderBy argument a client may leave out needs a @defaultOrder beside it. An ordering whose keys cannot be stated would sort by fewer keys than were written, or by none, so the build stops instead. An ordering is refused at the @defaultOrder, @order, @orderBy or fields element written, or at the list field; an index the table does not have is ELEMENT_UNRESOLVED, and a fields element’s name matching no one column of the table is COLUMN_UNRESOLVED, the codes every name claimed in vain and every missing column draw.

Next step. Write one surface, name a column, index or primary key the table has, or add @defaultOrder to the list. For a path, name keys that join to one row each, from the field’s table onward, and a column of the table it lands on, or sort by a method instead. @defaultOrder constraints and @order list the rules.

ORDER_SURFACES

A @defaultOrder or @order writes other than exactly one of index, primaryKey: true and fields, so it does not say what to sort by: write one.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_ORDER_SURFACES

Best-effort guidance, not yet reviewed.

The application writes other than exactly one of index, primaryKey: true and fields.

Each list is read in an order the build states: the one @defaultOrder writes, the primary key of the table the list’s type is bound to where none is written, or the one a client picks through @orderBy. Where that table has no primary key, or the type is a function’s result bound to no table, there is nothing to fall back on, and an @orderBy argument a client may leave out needs a @defaultOrder beside it. An ordering whose keys cannot be stated would sort by fewer keys than were written, or by none, so the build stops instead. An ordering is refused at the @defaultOrder, @order, @orderBy or fields element written, or at the list field; an index the table does not have is ELEMENT_UNRESOLVED, and a fields element’s name matching no one column of the table is COLUMN_UNRESOLVED, the codes every name claimed in vain and every missing column draw.

Next step. Write one surface, name a column, index or primary key the table has, or add @defaultOrder to the list. For a path, name keys that join to one row each, from the field’s table onward, and a column of the table it lands on, or sort by a method instead. @defaultOrder constraints and @order list the rules.

ORDER_VALUE_UNORDERED

A value of the enum an @orderBy argument picks its order by carries neither @order nor @index, so a client choosing it asks for an order that says nothing: give it @order.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_ORDER_VALUE_UNORDERED

Best-effort guidance, not yet reviewed.

A value of an @orderBy argument’s sort enum has neither @order nor @index.

Each list is read in an order the build states: the one @defaultOrder writes, the primary key of the table the list’s type is bound to where none is written, or the one a client picks through @orderBy. Where that table has no primary key, or the type is a function’s result bound to no table, there is nothing to fall back on, and an @orderBy argument a client may leave out needs a @defaultOrder beside it. An ordering whose keys cannot be stated would sort by fewer keys than were written, or by none, so the build stops instead. An ordering is refused at the @defaultOrder, @order, @orderBy or fields element written, or at the list field; an index the table does not have is ELEMENT_UNRESOLVED, and a fields element’s name matching no one column of the table is COLUMN_UNRESOLVED, the codes every name claimed in vain and every missing column draw.

Next step. Write one surface, name a column, index or primary key the table has, or add @defaultOrder to the list. For a path, name keys that join to one row each, from the field’s table onward, and a column of the table it lands on, or sort by a method instead. @defaultOrder constraints and @order list the rules.

OUTBOX_DUPLICATE_EVENT

Two @outbox in the schema carry the same event, given or defaulted to the field's coordinate on a SUCCESS message and to the coordinate followed by .failed on an ERROR one, so a consumer could not tell their messages apart: give each its own event.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_OUTBOX_DUPLICATE_EVENT

Best-effort guidance, not yet reviewed.

Reported at each @outbox carrying the event, which the detail names.

A consumer subscribes to messages by their event, so two @outbox with one event write one stream it cannot split. An @outbox without event takes the field’s coordinate, with .failed added on an ERROR message, so two on one field for one outcome collide even when neither names an event.

Next step. Give each @outbox its own event; on one field, leave it out on at most one per outcome. See @outbox.

OUTBOX_KEY_CONFLICT

A payload key is bound twice in one argMapping, or is also a key of the configured common payload, so one of the two values would be lost: rename or remove one.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_OUTBOX_KEY_CONFLICT

Best-effort guidance, not yet reviewed.

Reported at the @outbox, the detail naming the first conflicting key as written; once it is fixed, the next is reported.

A message’s payload is a flat JSON object, one value per key. A key bound twice in the @outbox’s `argMapping, or also bound by the common payload of the <outbox> block, has two values and could keep only one.

Next step. Rename one of the two keys or remove one. A value the common payload already puts on every message needs no entry of its own. See @outbox.

OUTBOX_NOT_A_WRITE

An @outbox writes a message when a write succeeds, so it belongs on a mutation field that writes a table with @mutation (INSERT, UPDATE or DELETE), or on a mutation field a @service answers: move it onto one, or remove it.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_OUTBOX_NOT_A_WRITE

Best-effort guidance, not yet reviewed.

Reported at the @outbox.

A message says that a write happened, and is written in the transaction that made it, so it exists exactly when the write committed. A field that writes nothing, a Query field for one, has no write for the message to describe and no transaction for it to join.

Next step. Move the @outbox onto a mutation field that writes a table with @mutation or that a @service answers, or remove it. See @outbox.

OUTBOX_NO_TARGET

An @outbox needs somewhere to write its message, and the build configures no <outbox> block naming a <table> or a <function>: add one to the plugin configuration.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_OUTBOX_NO_TARGET

Best-effort guidance, not yet reviewed.

Reported at every @outbox, since the plugin configuration has no position in the schema.

Where a message goes is configured once for every @outbox: an outbox table graphitron inserts a row into, or a database routine it calls. With neither, the generated code has nowhere to write it.

Next step. Add an <outbox> block naming a <table> or a <function> to the plugin configuration. See Transactional outbox.

OUTBOX_PAYLOAD_INVALID

The <outbox> block's <payload> binds a key to a source a common payload cannot read, or names a key twice: it reads $scope members and $session members only, and every key is its own.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_OUTBOX_PAYLOAD_INVALID

Best-effort guidance, not yet reviewed.

Reported at every @outbox, since the plugin configuration has no position in the schema; the detail names the first offending entry as key: source.

The <outbox> block’s <payload> goes on every message, whichever field writes it, so it can read only what every field has: $scope members and $session.<member>. An argument or $result belongs to one field. Each key carries one value, so a key named twice would lose one.

Next step. Correct the entry in <payload>: read a $scope or $session member there, move a field’s own value into that field’s @outbox(argMapping:), or remove the repeated key. See Transactional outbox.

OUTBOX_TARGET_INVALID

The <outbox> block cannot be used as written: fix the configuration the detail names.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_OUTBOX_TARGET_INVALID

Best-effort guidance, not yet reviewed.

Reported at every @outbox, since the plugin configuration has no position in the schema; the detail says what is wrong with the <outbox> block.

Graphitron fills two things of a message, its type and its payload, and leaves the rest to the database. A <table> target is one table of the jOOQ catalog with a type column, a JSON, JSONB or text payload column and a primary key, and no other NOT NULL column without a default. A <function> target is one procedure or function of the catalog, not a table-valued function, taking the type and the payload. The block names one of the two, and its <columns> or <parameters> bind only the type and payload roles.

Next step. Correct the block, or the table or routine it names, as the detail says. See Transactional outbox.

OUTCOME_FIELD_NON_NULL

A field of a type a service, write or routine hands back with its errors may not be null unless it is a list, which answers an empty list, and when the producer fails there is no value to read it from, so graphql-java would drop the errors with it: make the field nullable.

Severity

error

Basis

GRAPHITRON

Editor code

graphitron.error-channel.non-nullable-success-field

Best-effort guidance, not yet reviewed.

Reported at the field’s declaration.

A type a @service, a write or a @routine hands back beside an errors field is an outcome: when the producer succeeds its fields carry the value, and when it fails only the errors field does. A non-null field then has no value, and graphql-java nulls the whole outcome in its place, errors included. A non-null list is allowed, answering an empty list.

Next step. Make the field nullable. See How-to: The errors channel.

OUTCOME_IN_A_LIST

A producer catching into an outcome hands back one, its value or its errors, and the field declares a list of them, which would need one catch per element: declare one.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_OUTCOME_IN_A_LIST

Best-effort guidance, not yet reviewed.

Reported at the field.

A producer catching its failure into an outcome makes one call and hands back one outcome: its value, or the errors it caught. A list of outcomes would need a catch per element, and there is one call.

Next step. Declare the field as one outcome, and put the list inside it, on its data field. See How-to: The errors channel.

PARAMETER_AMBIGUOUS

A parameter of a method a @service or a @condition calls could take more than one of the call's arguments by type, or an argument it could take could go to another parameter as well, so nothing says which: name it after its argument, or bind it in argMapping.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_PARAMETER_AMBIGUOUS

Best-effort guidance, not yet reviewed.

Reported at the directive’s method reference, the service: or the condition:, naming the parameter.

A parameter no argMapping entry and no argument of its name reaches is filled by type only where it and an argument are each other’s only match. Where two arguments arrive as its class, or an argument it could take could fill another parameter too, a pairing would be a guess, and a wrong guess still compiles.

Next step. Rename the parameter after its argument, or bind it in argMapping. How each parameter is filled gives the order the fills are tried in.

PARAMETER_FILLED_TWICE

A parameter of a method a @service or a @condition calls is filled twice, by an argMapping pair and a contextArguments element, so nothing says which value it takes: write it once.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_PARAMETER_FILLED_TWICE

Best-effort guidance, not yet reviewed.

Reported at the directive’s method reference, naming the parameter.

A contextArguments element k is the argMapping entry k: $context.k under another spelling. A parameter both name has two values, and nothing says which one the call passes.

Next step. Remove one of the two. See How each parameter is filled.

PARAMETER_MISMATCH

A parameter of a method a call makes does not accept what the call passes there, so the call does not compile or the value does not cast: an @externalField's table parameter typed on a table its field's values are not rows of, or a @service parameter or input member taking one value where its argument is a list or a list where it is one, a @condition parameter taking one Java enum where its argument is a list of them, or a class the value does not arrive as, a Long for an ID or an Int, or a jOOQ record for a scalar; or a @service or root @routine parameter an argMapping hands a generated scalar's component, typed as another class than the component's; or a root @routine parameter bound to an input object, where the function takes one value. Type it as what arrives, or decode a node id onto a record with @nodeId(typeName:).

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_PARAMETER_MISMATCH

Best-effort guidance, not yet reviewed.

Reported at the directive’s method reference, naming the parameter, or at a @routine, which names none; at the input field for a member of a class a @service builds, naming the member; and at the @externalField reference, naming the first table its parameter does not accept.

The generated call passes each parameter the value as it arrives, so it compiles only where the two agree: a list for a list and one value for one, and the class the value arrives as. An ID arrives as a String, an Int as an Integer or int, and an Object parameter takes any scalar or enum value. A @condition parameter taking one Java enum takes one enum value, not a list of them. An @externalField method’s table parameter takes the table its field’s values are rows of.

A parameter an argMapping hands a generated scalar’s component, pStart: input.sti.startType, takes that component’s class, a String for every component today, at a @service and at a root @routine alike: the generated call decodes the value and passes the component, never the whole value. At a @routine such a binding is judged against the type the database function declares for the parameter, and so is a parameter bound to an input object: a database function takes one value per parameter, so bind a scalar or enum field of the object, pActorId: filter.actorId, not the object.

Next step. Declare the parameter as what arrives. To take a node id as a key, decode it onto a jOOQ record with @nodeId(typeName:). See How each parameter is filled.

PARAMETER_NAMES_MISSING

A method a @service or a @condition calls has a parameter nothing fills by its type, and its class was compiled without -parameters, so the parameter has no name an argument, an argMapping entry or a context key could bind: compile the class with -parameters, as <parameters>true</parameters> on maven-compiler-plugin does.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_PARAMETER_NAMES_MISSING

Best-effort guidance, not yet reviewed.

Reported at the directive, naming the class in the detail.

An argument, an argMapping entry or a context key binds a parameter by its name, which the class file keeps only when the class was compiled with -parameters. Without names, a parameter nothing fills by its type has nothing that could bind it. The build reports this once per directive rather than one PARAMETER_UNFILLED per parameter, since renaming arguments cannot fix it.

Next step. Compile the class’s module with -parameters, as <parameters>true</parameters> on maven-compiler-plugin does, and rebuild it before graphitron reads it.

PARAMETER_UNFILLED

A parameter of a method a @service or a @condition calls, or of a @routine, binds nothing: no argMapping entry names it, no argument has its name, and neither a context key nor its type gives it a value, so the call has nothing to pass it. Bind it in argMapping, or in contextArguments where the directive has one, or name it after the argument it takes; a @routine's $source.<column> binds it only where the column is one of the row the routine is applied to.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_PARAMETER_UNFILLED

Best-effort guidance, not yet reviewed.

Reported at the directive’s method reference, the service: or the condition:, or at the @routine, naming the parameter.

The generated call passes every parameter a value. For a @service the fills are tried in order: what argMapping or contextArguments writes, a DSLContext or Configuration by its type, an argument of the parameter’s name, the parent keys on a batched child, and an argument that is its only match by type. A routine’s IN parameter takes an argument, by its name or through argMapping, or a column of the row it is applied to as $source.<column>; a bare name never binds a column. A parameter an argMapping entry names is that entry’s to report where the entry fills nothing.

Next step. Rename the parameter after its argument, or bind it in argMapping, or in contextArguments where the directive has one. See How each parameter is filled and Where a parameter takes its value.

PARTICIPANTS_SHARE_A_TABLE

An interface or union field has two participants on one table, neither told apart by a discriminator, so a row of the table cannot say which of them it is: model them as a single-table discriminated interface, @table with @discriminate, or split the types.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_PARTICIPANTS_SHARE_A_TABLE

Best-effort guidance, not yet reviewed.

Reported at the field returning the interface or union, once for each participant after the first by name on the shared table.

A field returning an interface or union with no discriminator tells each row apart by the table it is a row of. Two participants on one table give rows of one record class, which neither the generated dispatch nor the combined read can assign to one of them. A node fetcher, a query field returning Node, tells its rows apart by the id’s type id, and a @service by the records it returns, so neither is reported.

Next step. Model the types as a single-table discriminated interface, a @table with @discriminate and a @discriminator on each type, or split the types so each is on a table of its own. See @discriminate and How-to: Polymorphic types.

PARTICIPANT_KEYS_DIFFER_IN_ARITY

An interface or union field has participants whose tables' primary keys have different numbers of columns, and the read over its participants projects every participant's key into the same columns: give the field participants whose keys have as many columns, or split the interface or union.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_PARTICIPANT_KEYS_DIFFER_IN_ARITY

Best-effort guidance, not yet reviewed.

Reported at the field returning the interface or union, once for each participant whose table’s primary key has another number of columns than a participant before it by name.

A field returning an interface or union with no discriminator reads each participant from its own table and combines the reads into one. Each read projects its table’s primary key into the same columns, one column per key column, so the reads line up only where every participant’s key has as many columns. A node fetcher, a query field returning Node, and a @service read their rows otherwise, so neither is reported.

Next step. Give the field participants whose tables' primary keys have the same number of columns, or split the interface or union into fields that each return such participants. See How-to: Polymorphic types.

PARTICIPANT_WITHOUT_PRIMARY_KEY

An interface or union field has a participant on a table with no primary key, and the read over its participants keys each row by its table's primary key to order it and hand it to its type: give the table a primary key, or leave the type out of the interface or union.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_PARTICIPANT_WITHOUT_PRIMARY_KEY

Best-effort guidance, not yet reviewed.

Reported at the field returning the interface or union, once for each participant on a table with no primary key.

A field returning an interface or union with no discriminator reads each participant from its own table and combines the reads into one. Every participant’s rows are keyed by their table’s primary key: the combined read orders by it and hands each row to its type by it. A row of a table with no primary key carries no such key. A node fetcher, a query field returning Node, and a @service read their rows otherwise, so neither is reported.

Next step. Give the table a primary key, or leave the type out of the interface or union. See How-to: Polymorphic types.

READ_SURFACE_ON_WRITE

A mutation field carrying @routine writes, and neither write shape has a filter or an ordering to resolve a @condition or an @orderBy against, so the generator emits nothing for one written here.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_READ_SURFACE_ON_WRITE

Best-effort guidance, not yet reviewed.

Reported at the @condition, on the field or on an argument, or at the @orderBy argument; the detail says which.

On a Mutation field the routine call is the write, and the field answers with a re-read of the written rows by the keys the call captured. Neither statement has a filter a condition could narrow or an order a client’s choice could set, so the directive would be accepted and do nothing.

Next step. Remove the @condition or the @orderBy. What should narrow the write goes to the routine as a parameter, through argMapping; the order of a plural write’s answer is stated with @defaultOrder. See Writes on Mutation.

REFERENCE_FOR_DUPLICATE_TYPE

Two @referenceFor applications on one field name the same type, and only the first one written is used.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_REFERENCE_FOR_DUPLICATE_TYPE

Best-effort guidance, not yet reviewed.

Reported at each @referenceFor after the first that names the type, which the detail names.

Each @referenceFor is one participant’s complete path, keyed by its type. Two naming one participant are two paths for it, and graphitron keeps the first written, so the later one does nothing.

Next step. Remove the later application. To give the participant a path of several steps, write them as elements of the first one’s path. See @referenceFor.

REFERENCE_FOR_MISPLACED

A @referenceFor states one participant's join path from the parent's row, and the field it sits on has no participants to route: a root field, a field returning one type, or one returning a single-table interface, whose participants share its table. It means something only on a field below the root returning a union or an interface with no table of its own; remove it, or write the field's path with @reference.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_REFERENCE_FOR_MISPLACED

Best-effort guidance, not yet reviewed.

Reported at each @referenceFor on a field with no participants to route, which the detail names.

A @referenceFor is one participant’s join path from the parent’s row, so it has a meaning only on a field below the root returning a union or an interface with no table of its own, whose participants each sit on a table of their own. A root field has no parent row for a path to depart from, a field returning one type has no participants, and a single-table interface’s participants share its table, told apart by its discriminator column. On those the application does nothing.

Next step. Remove the @referenceFor. Where the field’s rows need a path of their own, write it with @reference. See @referenceFor.

REFERENCE_WITHOUT_TARGET_TABLE

A path written on an output field, or a @referenceFor naming a member, reaches a type with no one table, an object type without @table, a union or an interface with no table of its own, so the path has nowhere to arrive and no catalog could make it resolve.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_REFERENCE_WITHOUT_TARGET_TABLE

Best-effort guidance, not yet reviewed.

Reported at the declaration that writes the path, or at the @referenceFor naming the member, the detail naming the target type.

A path is a chain of joins ending on the table the field’s rows come from. An object type without @table, a union, or an interface without a table of its own has no one table, so the path has nowhere to arrive. A scalar or enum read through a path, a @pivot, and a path ending on a @routine take what they read from wherever the path arrives, and are not refused.

Next step. Bind the target type to its table with @table. For a union or an interface whose participants sit on tables of their own, write each participant’s path with @referenceFor instead of a path on the field. Or remove the path.

REREAD_OF_DELETED_ROWS

A field re-reads the rows a delete removed, and they are gone once it runs: a delete hands back the keys of its rows, so return their ids.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_REREAD_OF_DELETED_ROWS

Best-effort guidance, not yet reviewed.

Reported at the delete’s own field where it returns a @table type, or at the field under the type it returns that would re-read its rows.

A DELETE hands back the keys of the rows it removed. Anything selecting those rows by their keys afterwards finds them gone.

Next step. Return the deleted rows' ids, as ID or [ID!] on the field or on a field of the type it returns. See @mutation.

RESULT_SHAPES_CONFLICT

A type is reached both as a row of a statement and as an object in memory that is not a class graphitron reads by accessor, or as a write's payload and as the object a @service returns, so its fields would be fetched two ways; give each its own type.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_RESULT_SHAPES_CONFLICT

Best-effort guidance, not yet reviewed.

Reported at the type’s declarations.

Each field of a type is fetched one way: off a row a statement selected, or off an object held in memory. A type reached both ways would have every field fetched both ways. Graphitron serves one mix, a row beside an object of a class it reads by accessor, each field dispatching on which it was handed; an object of no class does not mix. Nor does an object that is a jOOQ record, of any catalog, the schema’s own tables' records among them: the generated fetcher reads a Record it is handed as the row. A write’s payload, which graphitron builds itself, also returned by a @service, is two objects of different classes.

Next step. Declare a type of its own for each place the type is reached from, so each is reached one way.

ROUTE_AMBIGUOUS

A step reaches its destination by more than one route, a chain link naming a table two keys reach or a field with no path written between two tables more than one foreign key joins, so the generator has a join to emit and nothing to pick it by; naming the foreign key settles it.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_ROUTE_AMBIGUOUS

Best-effort guidance, not yet reviewed.

Reported at the path element naming a table more than one key reaches, or at the field’s declaration where no path is written, the detail then naming the two tables and the keys to choose between.

An element naming only a table:, and a field with no path written, leave graphitron to find the foreign key to join on, and it takes one only where exactly one joins the two tables, in either direction. film reaches language by language_id and by original_language_id, two joins with two different answers.

Next step. Name the key with {key:} in @reference, or, for one participant of an interface or union, in @referenceFor. See Path rules.

ROUTINE_BOUND_INPUT_FILTERED

An argument or input field a @routine parameter binds carries @field or @condition, but the call spends its value on the parameter and the value never reaches the read, so the filter the directive asks for would do nothing: drop the directive, or filter on another argument.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_ROUTINE_BOUND_INPUT_FILTERED

Best-effort guidance, not yet reviewed.

Reported at the @routine, naming the parameter.

An argument or input field a @routine parameter binds is spent on the call: its value is passed to the database function and never reaches the read of the function’s result. A @field or @condition on it asks for a filter on that read, which would silently do nothing.

Next step. Drop the directive from the bound argument or input field. To filter the routine’s result as well, add an argument the routine does not bind, which filters its rows as on any field. See @routine.

ROUTINE_SOURCE_AT_ROOT

A root field's @routine binds a parameter to $source, but a root field has no row to read a column off, so the call has nothing to pass it: bind the parameter to an argument of the field.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_ROUTINE_SOURCE_AT_ROOT

Best-effort guidance, not yet reviewed.

Reported at the @routine, naming the parameter.

$source.<column> binds a routine parameter to a column of the row the field is read under, which a field below a table-bound type has. A field on Query is read under no row, so there is no column to read and the call has nothing to pass the parameter.

Next step. Bind the parameter to an argument of the field, pActorId: actorId, and add the argument if the field has none. See @routine.

ROUTINE_WRITE_PATH_FANS_OUT

A routine write handing back one record reads it along a path with a step that reaches many rows, so one written row could answer as several: return a list, or read the record along a path whose every step reaches one row.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_ROUTINE_WRITE_PATH_FANS_OUT

Best-effort guidance, not yet reviewed.

Reported at the field, the detail naming the table the first step reaching many rows arrives at.

A @routine write’s answer is read along its path from the rows the routine wrote. A step following a foreign key back from the table it references, rental to payment for one, reaches every row pointing there, so one written row could answer as several where the field holds one.

Next step. Return a list, or write a path whose every step follows a foreign key to the one row it references. See Writes on Mutation.

ROUTINE_WRITE_PLURAL_ORDER_NOT_A_COLUMN

A plural routine write's @defaultOrder orders the routine's result by its own columns, and a fields: element with a method: or a path: names no column of it: name a column the routine returns.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_ROUTINE_WRITE_PLURAL_ORDER_NOT_A_COLUMN

Best-effort guidance, not yet reviewed.

Reported at the field, the detail naming the element’s name, or method: where it writes none.

On a plural mutation behind a routine, @defaultOrder orders the routine’s own result, and reads nothing but its columns. A method: computes a value over a table and a path: leaves for another table, so neither names a column of the result.

Next step. Name a column the routine returns, typically one carrying each row’s place in the input. See On a plural mutation backed by a routine.

ROUTINE_WRITE_PLURAL_UNORDERED

A mutation taking a list argument and answering one item per element is a plural identifying field, owing its answer in the order of its input, and the routine behind it returns a table, whose rows have no order of their own: give the routine's result an order with @defaultOrder(fields:) naming the columns of its result that keep the input's order, or change the field's shape.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_ROUTINE_WRITE_PLURAL_UNORDERED

Best-effort guidance, not yet reviewed.

Reported at the field, the detail naming the list argument.

A mutation taking a list and returning a list answers one item per element, matched to the input by position, so its answer must come back in the input’s order. A routine returning a table hands back rows in no order of their own, and only the routine knows which row answers which element.

Next step. Have the routine return a column keeping each row’s place in the input, and name it with @defaultOrder(fields:); or change the field so it is no longer a list in and a list out. See On a plural mutation backed by a routine.

ROUTINE_WRITE_TENANT_SCOPED

A @routine mutation in a database-per-tenant build re-reads rows a tenant's database holds, and a routine write names no tenant, so it runs on the default source and cannot reach that tenant's rows: return rows of a table no tenant column scopes, or write through a @service that names its tenant with $tenant.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_ROUTINE_WRITE_TENANT_SCOPED

Best-effort guidance, not yet reviewed.

Reported at the field.

In a database-per-tenant build, a row a tenant column scopes lives in that tenant’s database and is reached only on that tenant’s connection. A routine write names no tenant, so it runs on the default source, and its re-read cannot reach the tenant’s rows it answers with.

Next step. Return rows of a table no tenant column scopes, or make the write in a root @service that names its tenant with a $tenant entry in its argMapping. See How-to: Tenant scoping.

SCALAR_TYPE_CLASS_NOT_READ

A @scalarType names a class the classpath reading did not read: the name is misspelt, or the class sits in an entry the build does not hand the generator.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_SCALAR_TYPE_CLASS_NOT_READ

Best-effort guidance, not yet reviewed.

Reported at the @scalarType, the detail naming the class part of the reference.

Graphitron binds the scalar to the constant the reference names by reading its class off the classpath the build hands the generator. A class it did not read is misspelt, or comes from an artifact the module does not declare itself, one arriving only transitively or through a <plugin><dependencies> block.

Next step. Correct the class name, or declare the artifact carrying it in the module’s own <dependencies>. See Make the class nameable.

SCALAR_TYPE_CONSTANT_NOT_FOUND

A @scalarType names a class the reading read and a constant it does not declare as a public static GraphQLScalarType, so there is no scalar to bind.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_SCALAR_TYPE_CONSTANT_NOT_FOUND

Best-effort guidance, not yet reviewed.

Reported at the @scalarType, the detail the reference as written.

The class was read, and the name after its last period is not a constant it declares as public static and of type GraphQLScalarType: the constant is missing or misspelt, not public and static, or of another type. Graphitron registers that constant as the scalar’s implementation, so there is nothing to register.

Next step. Name a public static GraphQLScalarType constant the class declares, as in graphql.scalars.ExtendedScalars.UUID. See @scalarType.

SCALAR_TYPE_REFERENCE_MALFORMED

A @scalarType reference is not of the form fully.qualified.Class.FIELD, so it names no constant at all.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_SCALAR_TYPE_REFERENCE_MALFORMED

Best-effort guidance, not yet reviewed.

Reported at the @scalarType, the detail the reference as written.

A reference is split at its last period into a class and a constant. One with no period, or with nothing on one side of the last one, names neither, so there is no class to look for.

Next step. Write the reference as the class’s fully qualified name, a period and the constant: graphql.scalars.ExtendedScalars.UUID. See @scalarType.

SCOPE_MEMBER_UNKNOWN

An argMapping entry reads a member of $scope that the field's scope does not have: it offers coordinate, operationName and alias.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_SCOPE_MEMBER_UNKNOWN

Best-effort guidance, not yet reviewed.

Reported at the argMapping entry, the detail naming the member written.

$scope describes the field and its operation, and has three members: coordinate, operationName and alias. Any other name has no value to read.

Next step. Read one of the three, or remove the entry. See @outbox.

SERVICE_HOLDER_UNBUILDABLE

An instance @service method's class has no public constructor the generated code can call, one taking nothing or only a DSLContext: add one, or make the method static.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_SERVICE_HOLDER_UNBUILDABLE

Best-effort guidance, not yet reviewed.

Reported at the service: reference, the detail naming the class.

For an instance method, the generated fetcher makes the object the method runs on, with the class’s public constructor taking one DSLContext, else its public no-argument constructor. An abstract class, an interface, or a class whose constructors all take something else leaves it nothing to call. A context value fills a method’s parameter, never a constructor’s.

Next step. Add one of those constructors, or make the method static. See the @service constraints.

SERVICE_INPUT_AS_MAP

A @service parameter takes an input object as a Map or Object, and a map at the service boundary is a permanent anti-pattern: take a typed bean, a record or a class with a public no-arg constructor mirroring the input object, or, for open-ended JSON, declare a custom scalar with @scalarType and take its Java type.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_SERVICE_INPUT_AS_MAP

Best-effort guidance, not yet reviewed.

Reported at the argument or input field, the detail naming the parameter’s type as declared.

Graphitron builds an input object into the class its parameter declares, matching each input field to a member and refusing at build time what does not match. A Map or an Object has no members, so nothing is checked and every key is read by its GraphQL name at run time. A @condition takes the map and is not refused.

Next step. Take a typed class mirroring the input object: a jOOQ record, a Java record, or a class with a public no-argument constructor and setters. For open-ended JSON, declare a custom scalar with @scalarType and take its Java type. See How each parameter is filled.

SERVICE_PAYLOAD_IN_A_LIST

A @service hands back a list of table records, or of the class a payload's data field is read off, under a list of payloads whose field taking them is a list too, and each element fills one payload: make the payload's field a single one, return one payload, or hand back the payloads themselves.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_SERVICE_PAYLOAD_IN_A_LIST

Best-effort guidance, not yet reviewed.

Reported at the @service field, the detail naming the payload’s field.

Where a service hands back a list of table records, or of the class a payload’s data field is read off, under a field returning a list of payloads, each element fills one payload. That payload’s field then holds one element, so a list there has no list to hold.

Next step. Make the payload’s field a single value, return one payload holding the whole list, or have the service hand back the payloads themselves, each with its own list.

SERVICE_RETURN_MISMATCH

A @service answers something its field cannot be handed: records of another table than the one the field's type is bound to, values of another class than the one the field's scalar arrives as, many where the field is one record, scalar or enum or its payload's data field holds one object, or, under an object, a List in the keys' order handing each key one where the field is a list. Under an object the answer is read per key, from a Map's values or from a List's elements in the keys' order: answer the field's table record or its scalar's class, in a list exactly where the field is one. Where the field's payload encodes the records into ids of a node, @nodeId(typeName:) written, answer that node table's records, one for an id and a list for a list of ids. A result naming no class, a type variable, a raw container or an array, states no records at a field bound to a table, nor, under an object, a value for a scalar or enum field: declare the table's record or the value's class. Under an object a Map is keyed by the records or rows the source parameter collects, so the answer for each parent is found by the key it was handed.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_SERVICE_RETURN_MISMATCH

Best-effort guidance, not yet reviewed.

Reported at the field, the detail naming the method’s declared result type.

The generated fetcher hands the field what the method returns, so the declared result has to be what the field takes: records of the table the field’s type is bound to, values of the class its scalar arrives as, and many only where the field is a list. Under an object the answer is read per key, from a Map’s values or a `List’s elements in the keys' order, so a list field there answers `Map<Key, List<V>> or List<List<V>>. A payload encoding the records into ids with @nodeId(typeName:) takes that node table’s records. A Map there is keyed by the class the Sources parameter collects, since each parent’s answer is found by the key it was handed. A result naming no class, such as a type variable, a raw container or an array, says nothing of which records to read, nor, under an object, which value a scalar or enum field is handed.

Next step. Declare the result the field takes, or change the field to what the method returns. See the @service constraints.

SERVICE_SOURCES_NOT_KEYS

A @service under an object takes its parents' keys as a class that is neither a jOOQ table record nor a jOOQ row or record of the key columns, or as a collection whose element is unbounded, and nothing says how to put a key into one: take the parent table's records, or Row<N> or Record<N> of its key columns.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_SERVICE_SOURCES_NOT_KEYS

Best-effort guidance, not yet reviewed.

Reported at the field, the detail naming the class the source parameter collects, or the collection where its element is left unbounded (Set<?>, a raw Set).

A @service under an object is called once per request with the keys of every parent the request touched, and graphitron builds those keys itself. It builds them as the parent table’s jOOQ records, or as Row<N> or Record<N> of its key columns. A class of your own, a bare Record of no arity, or an element left unbounded has no rule for putting a key into it.

Next step. Take the parent table’s records, or Row<N> or Record<N> of its key columns, and convert inside the method. See the @service constraints.

SERVICE_SOURCES_OTHER_TABLE

A child @service under a @table type, or a type nested in one, takes its parents as records of another table, and a parent row is a record of its own table only: take the parent table's records, or a Row or Record of its key columns.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_SERVICE_SOURCES_OTHER_TABLE

Best-effort guidance, not yet reviewed.

Reported at the field, the detail naming the record class.

Under a @table type, or a type nested in its row, each parent is a row of that table, and the batch hands the service its key. Nothing turns a row of one table into a record of another, so a source parameter collecting another table’s records has nothing to be handed.

Next step. Take the parent table’s records, or Row<N> or Record<N> of its key columns, and reach the other table inside the method. See the @service constraints.

SERVICE_TRANSACTION_OUTSIDE_MUTATION

A @service says its service owns its transaction, with transactionControl: SERVICE, on a field that is not a field of the root mutation type, and only a top-level mutation field runs in a transaction the service could step out of: remove the argument, or move the service onto a mutation field.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_SERVICE_TRANSACTION_OUTSIDE_MUTATION

Best-effort guidance, not yet reviewed.

Reported at the @service.

transactionControl: SERVICE tells graphitron not to open the transaction it otherwise opens around the field, so the service commits its own writes. Only a field of the root Mutation type runs in a transaction of its own. Anywhere else, a query field or a field under a mutation’s payload, there is no such transaction to leave out, and the argument says nothing.

Next step. Remove the argument, or move the @service onto a root mutation field. See transaction demarcation.

SERVICE_UNION_RETURN

A @service field answers a union, and a Java method cannot declare one: its result type says nothing of which member it answers. Answer an interface the members implement instead.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_SERVICE_UNION_RETURN

Best-effort guidance, not yet reviewed.

Reported at the field.

A Java method declares one result type, and no Java type is a union of others, so nothing in the method’s signature says which member of the union it answers.

Next step. Declare an interface the members implement, return it from the field, and have the method answer it. See the @service constraints.

SERVICE_WITHOUT_METHOD

@service answers the field with the method its service: names by className and method, and defaults neither, so without both there is no method to call.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_SERVICE_WITHOUT_METHOD

Best-effort guidance, not yet reviewed.

Reported at the @service.

The field’s value is what the named method returns, and @service defaults neither className nor method. A service: missing either names nothing to call. (@externalField is the directive that defaults its method, to the field’s name.)

Next step. Write both className and method in service:. See the @service constraints.

SESSION_BINDING_TYPE_MISMATCH

An argMapping entry reads $session or one of its members into a parameter that is not declared as what the handle or the member yields, so the generated call would not compile: declare the parameter as that type, a primitive member being allowed its boxed type.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_SESSION_BINDING_TYPE_MISMATCH

Best-effort guidance, not yet reviewed.

Reported at the argMapping entry.

The parameter is handed the handle your mount returned, or one member of it, as it is. Its type must be the handle’s type or the member’s own, or the member’s box where the member is primitive. A boxed member cannot bind a primitive parameter, since it may be null.

Next step. Declare the parameter as the type the handle or the member yields. See Consuming the handle.

SESSION_BINDING_WITHOUT_IDENTITY

An argMapping entry reads $session, and the build configures no <sessionState>, so no session is mounted for the sigil to read: add <sessionState> to the build or bind the parameter another way.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_SESSION_BINDING_WITHOUT_IDENTITY

Best-effort guidance, not yet reviewed.

Reported at the argMapping entry, the detail the source as written.

$session reads the handle your connection source’s mount returns, on the connection the call runs on. The <sessionState> block is what declares that your source mounts one, so without it there is no handle to read.

Next step. Add a <sessionState> block to the plugin configuration, with a <handle> naming the handle’s type, or bind the parameter another way. See Session identity.

SESSION_HANDLE_UNNAMED

An argMapping entry reads $session, and <sessionState> names no <handle>, so the mount returns nothing the sigil could read: name the class the mount callback returns in <handle>.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_SESSION_HANDLE_UNNAMED

Best-effort guidance, not yet reviewed.

Reported at the argMapping entry binding $session or $session.<member>, the detail naming what it binds.

A $session parameter receives the handle your connection source’s leases carry, and $session.<member> reads one member of it. Graphitron checks both against the handle’s class, which <sessionState> names in <handle>; with no <handle> there is no class to check the parameter or the member against.

Next step. Name the handle class in <sessionState><handle>, by its binary name, or remove the $session entry if your leases carry no handle. See Session identity.

SESSION_MEMBER_AMBIGUOUS

An argMapping entry reads a member of $session that two accessors of the handle class offer, a getX and an isX for one property, so there is no single thing to read: remove one accessor.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_SESSION_MEMBER_AMBIGUOUS

Best-effort guidance, not yet reviewed.

Reported at the argMapping entry, the detail naming the member written after $session..

A member of the handle is the name of an accessor without its get or is prefix, so a class declaring both getActive() and isActive() offers the member active twice, and graphitron cannot tell which one the parameter should receive.

Next step. Remove one of the two accessors from the handle class, or wrap the handle in a Java record whose components name each value once. Consuming the handle lists which members a handle offers.

SESSION_MEMBER_UNKNOWN

An argMapping entry reads a member of $session that the handle class does not offer, as a record component or a get or is accessor it declares itself: name one it does.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_SESSION_MEMBER_UNKNOWN

Best-effort guidance, not yet reviewed.

Reported at the argMapping entry, the detail naming the member written after $session..

A member is read off the handle class itself: a record’s components, or the public no-argument getX() and isX() methods the class declares. Accessors it inherits and public fields offer no member, so a name that exists only there is unknown too.

Next step. Correct the name to one the handle declares, or declare an accessor for it on the handle class, re-declaring one that lives on a base class. Consuming the handle lists which members a handle offers.

SORT_KEY_COLUMN_OFF_PATH

A sort key's name is not a column of the table its path lands on, named in the detail: name a column of that table.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_SORT_KEY_COLUMN_OFF_PATH

Best-effort guidance, not yet reviewed.

A fields element’s name is not a column of the table its path lands on, named in the detail.

Each list is read in an order the build states: the one @defaultOrder writes, the primary key of the table the list’s type is bound to where none is written, or the one a client picks through @orderBy. Where that table has no primary key, or the type is a function’s result bound to no table, there is nothing to fall back on, and an @orderBy argument a client may leave out needs a @defaultOrder beside it. An ordering whose keys cannot be stated would sort by fewer keys than were written, or by none, so the build stops instead. An ordering is refused at the @defaultOrder, @order, @orderBy or fields element written, or at the list field; an index the table does not have is ELEMENT_UNRESOLVED, and a fields element’s name matching no one column of the table is COLUMN_UNRESOLVED, the codes every name claimed in vain and every missing column draw.

Next step. Write one surface, name a column, index or primary key the table has, or add @defaultOrder to the list. For a path, name keys that join to one row each, from the field’s table onward, and a column of the table it lands on, or sort by a method instead. @defaultOrder constraints and @order list the rules.

SORT_KEY_PATH_CONDITION

An element of a sort key's path carries a condition; an ordering path follows key joins only, and the rule for which related row counts belongs in a method that returns the sort key.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_SORT_KEY_PATH_CONDITION

Best-effort guidance, not yet reviewed.

An element of a fields element’s path carries a condition:, and an ordering path follows key joins only.

Each list is read in an order the build states: the one @defaultOrder writes, the primary key of the table the list’s type is bound to where none is written, or the one a client picks through @orderBy. Where that table has no primary key, or the type is a function’s result bound to no table, there is nothing to fall back on, and an @orderBy argument a client may leave out needs a @defaultOrder beside it. An ordering whose keys cannot be stated would sort by fewer keys than were written, or by none, so the build stops instead. An ordering is refused at the @defaultOrder, @order, @orderBy or fields element written, or at the list field; an index the table does not have is ELEMENT_UNRESOLVED, and a fields element’s name matching no one column of the table is COLUMN_UNRESOLVED, the codes every name claimed in vain and every missing column draw.

Next step. Write one surface, name a column, index or primary key the table has, or add @defaultOrder to the list. For a path, name keys that join to one row each, from the field’s table onward, and a column of the table it lands on, or sort by a method instead. @defaultOrder constraints and @order list the rules.

SORT_KEY_PATH_TO_MANY

A hop of a sort key's path reaches many rows of the table it lands on, and an ordering path may only follow to-one hops: supply a value derived from many rows through method, or make the hop to-one with a view that has a unique key on the parent's id and a jOOQ synthetic foreign key to it.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_SORT_KEY_PATH_TO_MANY

Best-effort guidance, not yet reviewed.

A hop of a fields element’s path reaches many rows of the table it lands on, the key named in the detail; an ordering path follows to-one hops only.

Each list is read in an order the build states: the one @defaultOrder writes, the primary key of the table the list’s type is bound to where none is written, or the one a client picks through @orderBy. Where that table has no primary key, or the type is a function’s result bound to no table, there is nothing to fall back on, and an @orderBy argument a client may leave out needs a @defaultOrder beside it. An ordering whose keys cannot be stated would sort by fewer keys than were written, or by none, so the build stops instead. An ordering is refused at the @defaultOrder, @order, @orderBy or fields element written, or at the list field; an index the table does not have is ELEMENT_UNRESOLVED, and a fields element’s name matching no one column of the table is COLUMN_UNRESOLVED, the codes every name claimed in vain and every missing column draw.

Next step. Write one surface, name a column, index or primary key the table has, or add @defaultOrder to the list. For a path, name keys that join to one row each, from the field’s table onward, and a column of the table it lands on, or sort by a method instead. @defaultOrder constraints and @order list the rules.

SORT_KEY_PATH_UNRESOLVED

A key named in a sort key's path does not touch the table the path stands on at that hop, the list's own at the first, so the path does not continue: name a key joining the two tables.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_SORT_KEY_PATH_UNRESOLVED

Best-effort guidance, not yet reviewed.

A key in a fields element’s path, named in the detail, does not join the table the path stands on at that hop, the field’s own table at the first.

Each list is read in an order the build states: the one @defaultOrder writes, the primary key of the table the list’s type is bound to where none is written, or the one a client picks through @orderBy. Where that table has no primary key, or the type is a function’s result bound to no table, there is nothing to fall back on, and an @orderBy argument a client may leave out needs a @defaultOrder beside it. An ordering whose keys cannot be stated would sort by fewer keys than were written, or by none, so the build stops instead. An ordering is refused at the @defaultOrder, @order, @orderBy or fields element written, or at the list field; an index the table does not have is ELEMENT_UNRESOLVED, and a fields element’s name matching no one column of the table is COLUMN_UNRESOLVED, the codes every name claimed in vain and every missing column draw.

Next step. Write one surface, name a column, index or primary key the table has, or add @defaultOrder to the list. For a path, name keys that join to one row each, from the field’s table onward, and a column of the table it lands on, or sort by a method instead. @defaultOrder constraints and @order list the rules.

SOURCE_PARAMETER_MISSING

A @service under an object type is fetched for many parents at once, and its method has no parameter taking their keys: add a Set or List parameter of the records the parents are keyed by, and return a Map by those keys or a List in their order.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_SOURCE_PARAMETER_MISSING

Best-effort guidance, not yet reviewed.

Reported at the field, the detail naming the service method.

A @service below the root always batches: the generated fetcher collects the parents the request reached and calls the method once for all of them, through a DataLoader. The method must therefore take the parents' keys and answer one value per key; there is no per-parent call to fall back on.

Next step. Add a Set<Key> or List<Key> parameter, where Key is the parent table’s record or a Row<N> or Record<N> of its key columns, and return a Map<Key, V> or a List<V> in the keys' order. @service constraints states the shapes.

SPLIT_QUERY_REDUNDANT

A @splitQuery on a field whose rows arrive from a query of their own anyway, under a type a Java object backs or on a payload's data field, changes nothing, so the directive is ignored. Remove it.

Severity

warning

Basis

GRAPHITRON

Editor code

GRAPHITRON_SPLIT_QUERY_REDUNDANT

Best-effort guidance, not yet reviewed.

Reported at the @splitQuery. A warning: the build continues, and the directive is ignored.

The field’s rows already arrive from a query of their own. Under a type a Java object backs, the object’s record is handed to the field, which opens a DataLoader-backed scope for it; on a payload’s data field, the field re-reads its producer’s records by their keys. Either way there is no parent query left to split, so @splitQuery changes nothing.

Next step. Remove the @splitQuery. To keep it, list SPLIT_QUERY_REDUNDANT under <lint><disabledRules>. @splitQuery describes where the directive applies.

TABLE_AMBIGUOUS

A @table names a table more than one schema declares, so nothing says which the type is bound to; qualifying the name with its schema settles it.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_TABLE_AMBIGUOUS

Best-effort guidance, not yet reviewed.

Reported at the @table, the detail naming the table as written.

The catalog spans several schemas, and more than one of them holds a table of this name, so the bare name could bind the type to either and graphitron will not pick one.

Next step. Qualify the name with its schema, as @table(name: "public.event"). See @table.

TABLE_INTERFACE_PARTICIPANT_UNBOUND

A member of an interface writing @discriminate has no @table, so it is no row of the shared table nor of one joined to it: give it @table.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_TABLE_INTERFACE_PARTICIPANT_UNBOUND

Best-effort guidance, not yet reviewed.

Reported at the @discriminate, the detail naming the member without @table.

A @discriminate interface reads all its members off one shared table and tells their rows apart by the discriminator column. A member with no table is a row of no table, so there is nothing to read it from.

Next step. Give the member the interface’s @table and a @discriminator(value:), or take it out of the interface. Members on tables of their own belong to an interface without @discriminate; see How-to: Polymorphic types and @discriminate.

TABLE_NAMES_ROUTINE

A @table names a table-valued function, and a type is not bound to a function: the field carrying @routine binds its return type to the routine's result, so the directive is removed.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_TABLE_NAMES_ROUTINE

Best-effort guidance, not yet reviewed.

Reported at the @table, the detail naming what it names.

A type returned by a field carrying @routine takes the routine’s result as its rows; that belongs to the field, where the routine is called with its arguments. A table-valued function is no table a type can stand on, since there are no rows until it is called.

Next step. Remove the @table and let the @routine field say where the rows come from. See The type’s rows are the routine’s result.

TABLE_UNRESOLVED

A @table names a table the catalog does not hold, so the type is bound to nothing: the name is misspelt, or the table is in a schema the build does not generate.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_TABLE_UNRESOLVED

Best-effort guidance, not yet reviewed.

Reported at the @table, the detail naming the table as written, or the type’s name where name: is left out.

Every column, join and write on the type is resolved against its table in the jOOQ catalog, so a type bound to a name the catalog lacks has nothing to resolve against.

Next step. Correct the name to the table as the catalog spells it, or, when name: is left out, give one where the type’s name is not the table’s. If the table lives in a schema the jOOQ code generation leaves out, include that schema. See @table.

TENANT_MARKER_BESIDE_NODE_ID

An argument or input field is written both @tenant and @nodeId, and the node id's decoded key already names its tenant, so the marker says nothing: remove @tenant.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_TENANT_MARKER_BESIDE_NODE_ID

Best-effort guidance, not yet reviewed.

Reported at the @tenant.

A node id carries its tenant inside the key it decodes to, and a call taking it is already routed by that. The marker would name the same tenant a second way, saying nothing the id does not.

Next step. Remove @tenant from the argument or input field. See @tenant.

TENANT_MARKER_ON_RECORD_MEMBER

A value named as a call's tenant, by @tenant or a $tenant pair, fills a member of an input object built into a jOOQ record, where a field writes its table's column: remove the marker or the pair, and bind the field to the tenant column with @field(name:), which names the call's tenant from the record.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_TENANT_MARKER_ON_RECORD_MEMBER

Best-effort guidance, not yet reviewed.

Reported at the @tenant or the $tenant entry, the detail naming the table the record is a row of.

An input object a service takes as a jOOQ record is built column by column: each field writes a column of the record’s table. A value marked as the tenant there would still only write a column. The record already names its tenant: the field bound to the tenant column with @field(name:) routes the call, and a marker beside it says nothing that binding does not.

Next step. Remove @tenant, or the $tenant pair, and bind the field to the tenant column with @field(name:). See @tenant.

TENANT_NAMED_TWICE

A call's tenant is named twice, by a $tenant pair and by @tenant on another argument or input field, so nothing says which it runs on: name it once.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_TENANT_NAMED_TWICE

Best-effort guidance, not yet reviewed.

Reported at the $tenant entry of the argMapping, the detail naming the argument or input field marked @tenant.

A root @service runs on one tenant’s connection. With a $tenant entry and a @tenant marker on another value, two values could name different tenants, and nothing says which one the call runs on.

Next step. Name the tenant once. $tenant is the preferred form, so remove the @tenant marker. See @tenant and argMapping.

TENANT_READ_ACROSS_SCOPES

A root field graphitron reads in a database-per-tenant build reads, in one statement, tables a tenant's database holds and tables no tenant column scopes, and one statement runs on one connection, which holds either a tenant's rows or the global ones: read the tenant's rows and the global rows from fields of their own.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_TENANT_READ_ACROSS_SCOPES

Best-effort guidance, not yet reviewed.

Reported at the root field.

In a database-per-tenant build each tenant’s rows live in that tenant’s database, and the rows of a table no tenant column scopes live in the default one. A root field graphitron reads runs one statement on one connection. When the tables that statement reads include both kinds, as a union or interface whose members sit on a tenant’s table and on a global one can, no connection holds them all. Naming the tenant does not help: the global rows are not in the tenant’s database.

Next step. Read the tenant’s rows and the global rows from fields of their own, for example one root field per member, or a union whose members are all a tenant’s tables or all global ones. See How-to: Tenant scoping.

TENANT_ROUTES_NOTHING

A tenant is named, by @tenant or a $tenant pair, where nothing routes by it: in a build with no <tenantColumn>, or for a root call whose result is a global table's, which runs on the default source whatever its arguments name: remove the marker or the pair.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_TENANT_ROUTES_NOTHING

Best-effort guidance, not yet reviewed.

Reported at the @tenant or the $tenant entry. Where the call’s result is a global table’s, the detail names that table.

A tenant decides which database a call runs on, and only where something routes by it. In a build with no <tenantColumn> nothing does: every call runs on the one connection. A root @service whose result is a @table type on a table with no tenant column re-reads those rows on the default source, whatever its arguments name. Either way the value you marked would choose nothing.

Next step. Remove @tenant, or the $tenant pair. If the build is meant to route by tenant, configure <tenantColumn>; if the call is meant to run on a tenant’s database, return a type whose table carries the tenant column. See @tenant.

TENANT_SLOTS_OPTIONAL_ONLY

Every value a root @service's or a root read's tenant is read from may be left out, and the field needs a tenant, reading or re-reading a tenant's rows or handed a connection, so a request can name none and nothing says where it runs: make one of them required. A root field graphitron reads may instead be marked @tenantFanOut, to read every tenant the request may see when none is given.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_TENANT_SLOTS_OPTIONAL_ONLY

Best-effort guidance, not yet reviewed.

Reported at the root field.

A root @service in a database-per-tenant build that needs a tenant, because it re-reads a tenant’s rows or is handed a connection, runs on the connection of the tenant its arguments name, and so does a root field graphitron reads from a tenant’s table. When every value the tenant is read from may be left out, a request can leave them all out and name no tenant, so the field would have nowhere to run. A root @service that needs no tenant runs on the connection with no tenant whatever its arguments name.

Next step. Make one of those values required. A value counts as required only when every step of its path is non-null: the argument, each input field down to the one naming the tenant, and the elements of any list on the way. A root field graphitron reads may instead be marked @tenantFanOut, to read every tenant the request may see when none is given. See How-to: Tenant scoping.

TENANT_VALUE_TYPE_DISAGREES

A value named as a call's tenant arrives as another class than the tenant column's, or is an input object, and a tenant is read as it was sent, with no conversion: declare it a scalar arriving as the column's class, String or ID for a String key, Int for an Integer key.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_TENANT_VALUE_TYPE_DISAGREES

Best-effort guidance, not yet reviewed.

Reported at the $tenant entry or the @tenant, the detail naming the value’s class and the tenant column’s. An input object marked as the tenant is refused the same way, its value a map no tenant key is; the detail names the input object.

The tenant is handed to your connection source as the client sent it, with no conversion or normalisation, so the value’s GraphQL type must arrive as the tenant key’s Java type.

Next step. Mark the scalar field inside the input object instead, or change the value’s type to a scalar that arrives as the tenant column’s class: String or ID for a String key, Int for an Integer key, or a custom scalar whose Java type is the key’s. See @tenant.

TYPE_NAME_CASE_COLLISION

Two types the generator writes a file for have names that differ only in case, which on a filesystem that folds case is one file; rename one of them.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_TYPE_NAME_CASE_COLLISION

Best-effort guidance, not yet reviewed.

Reported at each type’s declaration, the detail naming the other type.

Graphitron writes one file for each type other than a scalar, named for the type, and minted types count too. On a filesystem that folds case, two names differing only in case are one file, and neither type can be kept.

Next step. Rename one of the types so the names differ by more than case.

UNROUTED_CHILD

A field under a table that no tenant column scopes reads rows a tenant's database holds by a key that names no tenant, so nothing says which tenant's database to read: follow a key landing on the tenant column, or read the rows from a field under a tenant's rows.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_UNROUTED_CHILD

Best-effort guidance, not yet reviewed.

Reported at the field.

In a database-per-tenant build each tenant’s rows live in that tenant’s database. A field below a global table’s row reads a tenant’s rows by a key that does not land on the tenant column, so the parent row names no tenant and none is handed down from it. This holds whether a @service answers the field or graphitron reads it.

Next step. Follow a foreign key that lands on the tenant column, so the parent row names the tenant, or read these rows from a field under a tenant’s rows. See How-to: Tenant scoping.

UNROUTED_ROOT_READ

A root field graphitron reads in a database-per-tenant build reads rows a tenant's database holds, and no argument or input field binds the tenant column, so nothing says which tenant's database to read: bind the tenant column with a required argument or input field, on the table read or one a @reference reaches, or take a node id whose key holds it. A node id of an interface or union over several node types names no one tenant, each member decoding it with its own key, so a read taking its tenant off one is refused so too, whatever else names it: name one node type with @nodeId(typeName:).

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_UNROUTED_ROOT_READ

Best-effort guidance, not yet reviewed.

Reported at the root field.

In a database-per-tenant build each tenant’s rows live in that tenant’s database. A root field graphitron reads has no parent row to name its tenant, so only its own arguments can: an argument or input field bound to the tenant column, on the table it reads or on one a @reference reaches, or a node id whose key holds that column. With none naming it, nothing says which tenant’s database to read. A node id of an interface or union over several node types names no one tenant either, since each member decodes it with its own key.

A root field reading only global tables runs on the connection with no tenant and is not reported here. Neither is a node fetcher, which routes by the id it decodes, nor a field marked @tenantFanOut, which reads every tenant the request may see.

Next step. Bind the tenant column with a required argument or input field, or take a node id whose key holds it, naming one node type with @nodeId(typeName:). A list field may instead be marked @tenantFanOut. See How-to: Tenant scoping.

UNROUTED_SERVICE_CALL

A root @service in a database-per-tenant build is handed a connection, or re-reads rows a tenant's database holds, and nothing in its arguments names the tenant, so it would run on the default source whatever its own SQL touches: name the tenant with $tenant in its argMapping, or take the node table's record or a jOOQ record carrying the tenant column; a service touching only global data takes no connection. A node id of an interface or union over several node types names no one tenant, each member decoding it with its own key, so a call reading its tenant off one is refused so too, whatever else names it: name one node type with @nodeId(typeName:).

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_UNROUTED_SERVICE_CALL

Best-effort guidance, not yet reviewed.

Reported at the root field.

A service’s own SQL is opaque to graphitron. A root @service that is handed a DSLContext or $session, or whose returned rows graphitron re-reads from a tenant’s table, must run on a tenant’s connection, and only its arguments can say which tenant. With none naming it, the call would run on the connection with no tenant.

Next step. Name the tenant: with a $tenant: <path> entry in the argMapping, or by taking the node table’s jOOQ record through @nodeId(typeName:) in place of an encoded id, or a jOOQ record parameter binding the tenant column. A service that works only on global tables takes no connection. See How-to: Tenant scoping and argMapping.

VALIDATION_COLUMN_UNCHECKED

A @service under a VALIDATION handler validates a jOOQ record, but the record reads some of the columns it writes through no public getter of the default name, so the constraints on those columns' properties are not run; a generator strategy that renames getters causes this.

Severity

warning

Basis

GRAPHITRON

Editor code

GRAPHITRON_VALIDATION_COLUMN_UNCHECKED

Best-effort guidance, not yet reviewed.

Reported at the @service field, the message naming each column. A warning: the build continues.

Under a VALIDATION handler, a service’s jOOQ record arguments are validated before the call, one written column at a time, through the Bean Validation constraints on the property the record’s getter for that column exposes. The record declares no public getter of the name jOOQ’s default generator strategy gives these columns, so there is no property to check and their constraints are not run.

Next step. A generator strategy that renames getters causes this; keep the default getter names for the record, or check those columns yourself in the service. To accept it, list VALIDATION_COLUMN_UNCHECKED under <lint><disabledRules>. The error channel describes the VALIDATION handler.

VOUCHER_ACCEPT_KEY_AMBIGUOUS

@accept leaves key: out on a type with more than one authored resolvable @key, so which one the voucher decodes to is unsaid: name it with key:.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_VOUCHER_ACCEPT_KEY_AMBIGUOUS

Best-effort guidance, not yet reviewed.

Reported at the @accept.

A voucher’s lookup part decodes to the fields of one of the type’s keys. With key: left out graphitron takes the type’s one authored resolvable @key, and this type has several, so which fields the lookup part fills is unsaid.

Next step. Name the key with key:, spelled as that @key(fields:) spells it. See @accept.

VOUCHER_ACCEPT_KEY_NESTED

@accept's key: has a nested selection, and a voucher's lookup part carries top-level scalar fields: name a key of top-level fields.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_VOUCHER_ACCEPT_KEY_NESTED

Best-effort guidance, not yet reviewed.

Reported at the @accept.

A voucher’s lookup part carries one scalar value per top-level field, so a key reaching into a nested selection has fields the voucher cannot fill.

Next step. Name in key: an authored resolvable @key of top-level fields only, adding one to the type if it has none. See @accept.

VOUCHER_ACCEPT_KEY_UNKNOWN

@accept's key: names no authored resolvable @key of the type, field set for field set: name the fields of one.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_VOUCHER_ACCEPT_KEY_UNKNOWN

Best-effort guidance, not yet reviewed.

Reported at the @accept.

The voucher’s lookup part is read through the authored key’s own lookup, so key: must match one of the type’s resolvable @key field sets; the order of the fields does not matter.

Next step. Correct key: to the fields of an authored resolvable @key of the type. See @accept.

VOUCHER_ACCEPT_VOUCHED_FOR_DIFFERS

Two types marked @accept in one graph vouch for differently shaped values, and the graph's vouched connections are keyed by one shape: name the same vouched-for fields, each reading a column of the same Java type, on every @accept.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_VOUCHER_ACCEPT_VOUCHED_FOR_DIFFERS

Best-effort guidance, not yet reviewed.

Reported at each @accept whose shape differs from the first accepting type’s by name.

A graph’s vouched connections are all keyed by one generated ConnectionKey, one part per vouched-for field typed by its column. Every @accept must fill that one key, so they must all name the same vouched-for fields, each reading a column of the same Java type.

Next step. Make every @accept in the graph name the same vouched-for fields, with columns of the same Java type. See @accept.

VOUCHER_ACCEPT_WITHOUT_KEY

@accept is on a type with no authored @key this subgraph resolves it by, and a voucher's lookup part decodes to such a key: write the key.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_VOUCHER_ACCEPT_WITHOUT_KEY

Best-effort guidance, not yet reviewed.

Reported at the @accept.

A voucher’s lookup part decodes to the fields of an authored @key this subgraph resolves the type by, and the vouched row is read through that key’s lookup. A type with no such key has nothing for the lookup part to fill.

Next step. Write a resolvable @key on the type, named and typed as the issuing type’s absorbed fields outside vouchesFor. See @accept and How-to: Voucher handover.

VOUCHER_FIELD_NAME_TAKEN

A type marked @issue or @accept declares a field named internalGraphitronVoucher, the name Graphitron mints the voucher field under: rename or remove the field.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_VOUCHER_FIELD_NAME_TAKEN

Best-effort guidance, not yet reviewed.

Reported at the @issue or @accept, the detail naming the field.

Graphitron mints the voucher field as internalGraphitronVoucher on every issuing and accepting type, the same name in every subgraph so the two sides cannot disagree on it. A field of that name written by hand is not taken for the voucher.

Next step. Rename or remove the field. See @issue or @accept.

VOUCHER_ISSUE_ON_KEYED_TYPE

@issue is on a type with an authored @key, which would let a router reach the other subgraph's entity without the voucher: remove the @key.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_VOUCHER_ISSUE_ON_KEYED_TYPE

Best-effort guidance, not yet reviewed.

Reported at the @issue, the detail naming the type.

An issuing type is published keyed by its voucher alone and not resolvable, so a router reaches the other subgraph’s entity from it only through the voucher. An authored @key would give the router another way there, past the voucher.

Next step. Remove the @key from the issuing type. See @issue.

VOUCHER_ISSUE_ON_NODE

@issue is on a node type, whose node key would name an id the voucher absorbs: issue from a type that is no node.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_VOUCHER_ISSUE_ON_NODE

Best-effort guidance, not yet reviewed.

Reported at the @issue, the detail naming the type.

Every field written on an issuing type is absorbed into the voucher and withheld from the published schema. A node is keyed by its id, which would then be absorbed with the rest.

Next step. Issue the voucher from a type that is no node, or drop @issue. See @issue.

VOUCHER_ISSUE_ON_ROOT_TYPE

A root operation field returns a type with @issue, and a voucher vouches for rows reached below a parent A's own rules admitted: return it from a field below one.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_VOUCHER_ISSUE_ON_ROOT_TYPE

Best-effort guidance, not yet reviewed.

Reported at the @issue, the detail naming the type.

A voucher vouches for rows the user reached below a parent this subgraph’s own rules admitted. A root operation field reaches the rows with no such parent. A mutation payload’s field is no root field.

Next step. Return the issuing type from a field below a parent type, and not from a field of Query, Mutation or Subscription. See @issue.

VOUCHER_MARKERS_BOTH

A type is marked both @issue and @accept, and a type issues or accepts one voucher: keep one marker.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_VOUCHER_MARKERS_BOTH

Best-effort guidance, not yet reviewed.

Reported at each marker, the detail naming the type.

A type carries one voucher field, which either signs a voucher here or receives one from another subgraph, so it issues or accepts, not both.

Next step. Keep @issue if this subgraph vouches for the rows, or @accept if it grants access to them, and remove the other. See @issue and @accept.

VOUCHER_MEMBER_COLUMN_UNRESOLVED

A field @issue absorbs reads no column of the issuing type's table: name its column with @field(name:).

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_VOUCHER_MEMBER_COLUMN_UNRESOLVED

Best-effort guidance, not yet reviewed.

Reported at the absorbed field, the detail naming it.

The voucher field’s fetcher signs each absorbed field’s value as read off the issuing row, so each must read a column of the issuing type’s table. A field is matched to a column by its @field(name:), or by its own name when that is left out.

Next step. Name the column with @field(name:), or remove the field. See @issue.

VOUCHER_MEMBER_COMPUTED

A field @issue absorbs carries a directive that gives it a value of its own, and the voucher reads each absorbed field off the issuing row: absorb fields that read a column.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_VOUCHER_MEMBER_COMPUTED

Best-effort guidance, not yet reviewed.

Reported at the directive on the absorbed field, the detail naming the field.

The voucher reads each absorbed field off the issuing row. A field carrying @nodeId, @service, @routine, @reference, @externalField or @pivot has a value of its own that the row does not hold.

Next step. Remove the directive so the field reads a column, or remove the field from the type. See @issue.

VOUCHER_MEMBER_NOT_SCALAR

A field @issue absorbs is a list, an object or an enum, and the voucher carries each absorbed field as one scalar value: absorb scalar fields only.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_VOUCHER_MEMBER_NOT_SCALAR

Best-effort guidance, not yet reviewed.

Reported at the absorbed field, the detail naming it.

The voucher carries each absorbed field as one value, serialized by the field’s scalar before it is signed. A list, an object or an enum has no single scalar value to carry.

Next step. Absorb scalar fields only: change the field’s type to a scalar, or remove it from the issuing type. See @issue.

VOUCHER_TTL_INVALID

@issue's ttl is not an ISO-8601 duration of hours, minutes and seconds, such as PT5M.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_VOUCHER_TTL_INVALID

Best-effort guidance, not yet reviewed.

Reported at the @issue, the detail naming the ttl as written.

Every voucher an operation issues expires at the operation’s start plus ttl, so it must be a duration graphitron can read: PT followed by hours, minutes and seconds, each optional but at least one present.

Next step. Write ttl as such a duration, for example PT5M or PT1H30M. See @issue.

VOUCHER_VOUCHED_FOR_NOT_ABSORBED

@issue's vouchesFor names something that is no absorbed field of the type: a name the type does not declare, the voucher field itself, or a nested selection.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_VOUCHER_VOUCHED_FOR_NOT_ABSORBED

Best-effort guidance, not yet reviewed.

Reported at the @issue, the detail naming the first such name.

The vouched-for values are taken from the absorbed fields, the fields written on the issuing type. A name the type does not declare, internalGraphitronVoucher, or a nested selection names none of them.

Next step. Name in vouchesFor top-level fields written on the type. See @issue.

VOUCHER_VOUCHED_FOR_NOT_A_COLUMN

@accept's vouchesFor names a field that does not read one column of the type's own table, a list or a field read some other way, and the voucher's vouched-for values parse into each as one scalar value, as a key field's value does: vouched-for fields that read the table's columns.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_VOUCHER_VOUCHED_FOR_NOT_A_COLUMN

Best-effort guidance, not yet reviewed.

Reported at the @accept, the detail naming the first such field.

Each vouched-for value is coerced to its field’s column and becomes one part of the connection key, typed by that column, as a key field’s value is. A list, or a field read some other way than off one column of the type’s own table, has no column to coerce to.

Next step. Name in vouchesFor fields that read one column of the type’s table. See @accept.

VOUCHER_VOUCHED_FOR_NOT_A_FIELD

@accept's vouchesFor names something that is no field of the type for the voucher's vouched-for values to parse into: a name the type does not declare, a voucher field, or a nested selection.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_VOUCHER_VOUCHED_FOR_NOT_A_FIELD

Best-effort guidance, not yet reviewed.

Reported at the @accept, the detail naming the first such name.

The voucher’s vouched-for values parse into fields of the accepting type. A name the type does not declare, internalGraphitronVoucher, or a nested selection is no field for a value to parse into.

Next step. Name in vouchesFor top-level fields of the type, the same fields the issuing subgraph’s @issue(vouchesFor:) names. See @accept.

VOUCHER_VOUCHED_FOR_REPEATED

A voucher marker's vouchesFor names a field twice: name it once.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_VOUCHER_VOUCHED_FOR_REPEATED

Best-effort guidance, not yet reviewed.

Reported at the @issue or @accept, the detail naming the repeated field.

Each vouched-for field is one section of the voucher and one part of the connection key, so a field named twice would stand for two parts holding one value.

Next step. Name each field once in vouchesFor.

VOUCHER_VOUCHES_FOR_EMPTY

A voucher marker's vouchesFor selects no field, and a voucher says whose rows it vouches for through its vouchesFor: name them.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_VOUCHER_VOUCHES_FOR_EMPTY

Best-effort guidance, not yet reviewed.

Reported at the @issue or @accept.

The vouched-for fields say whose rows a voucher vouches for, and they become the connection key the accepting subgraph’s row-level security reads. A voucher vouching for nothing would unlock nothing.

Next step. Name at least one field in vouchesFor, the same fields on both the @issue and the @accept. See How-to: Voucher handover.

A voucher marker needs a federation @link: a voucher only makes sense where a router plans across subgraphs, and the key it is reached by needs the link.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_VOUCHER_WITHOUT_FEDERATION_LINK

Best-effort guidance, not yet reviewed.

Reported at the @issue or @accept, the detail naming the type.

A voucher is handed from one subgraph to another by a router, through a federation key on internalGraphitronVoucher that graphitron mints. Without a federation link the schema is no subgraph, and there is neither a router nor a key.

Next step. Add an extend schema @link(url: "…​", import: […​]) to the schema, or drop the voucher marker. See How-to: Federation keys.

WRITE_RESULT_HOLDS_ONLY_KEYS

A field under the object type a write returns reads a member off what the write hands back, and a write hands back the keys of its rows, not an object of a class: re-read the rows by those keys, or encode them as an id.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_WRITE_RESULT_HOLDS_ONLY_KEYS

Best-effort guidance, not yet reviewed.

Reported at the field under the type the write returns.

An INSERT, UPDATE or DELETE @mutation, or a @routine write, hands back the keys of the rows it wrote, not an object of a class. A field reading a member off that result finds nothing there. What a type returned by a write can hold is a field re-reading the written rows by those keys, an id encoded from them, and an errors field.

Next step. Read the value through a field returning the written rows' @table type, or make the field an ID. See @mutation.

WRITE_TABLES_DISAGREE

A @mutation writes one table, and the tables it is read on are not one: the table its return or the fields re-reading the written rows bind, and the one @mutation(table:) names, disagree, so nothing says which table is written.

Severity

error

Basis

GRAPHITRON

Editor code

GRAPHITRON_WRITE_TABLES_DISAGREE

Best-effort guidance, not yet reviewed.

Reported at the @mutation.

A @mutation writes one table, and graphitron takes it from every place the write is read on: the @table type it returns, the @table types its payload’s fields re-read the written rows as, and @mutation(table:). Two fields re-reading the same table agree; here two of these name different tables.

Next step. Make them name one table: correct or drop table:, and re-read the written rows only as types bound to the table written. See @mutation.

Deferrals: valid, not generated yet

The schema is valid and means something, and graphitron does not generate it yet. Each entry says what is valid, why it is not generated, and what to write instead.

ARGMAPPING_PATH_PAST_CYCLE

An argMapping right-hand side follows an input type that nests itself further than its first repetition, which is not supported yet: bind the parameter at a shallower depth.

Severity

error

Basis

UNSUPPORTED

Editor code

GRAPHITRON_ARGMAPPING_PATH_PAST_CYCLE

Best-effort guidance, not yet reviewed.

Reported at the argMapping string. Valid: an input type may nest itself, input Tree { value: Int child: Tree }, and a path may name any depth of it.

Graphitron follows a self-nesting input type to its first repetition, tree.child.value, and not further yet.

Instead. Bind the parameter at a shallower depth, taking the nested value whole and reading deeper levels in the method. Binding a parameter to a nested input field describes the paths.

AUTHORED_CONNECTION_FACET_UNSUPPORTED

An @asFacet filter field is taken only by fields returning a connection type declared in the schema, which is valid, and graphitron does not yet generate the facets field on a connection type it did not generate, so the counts are not surfaced. Return an @asConnection connection from a field taking the filter, or remove @asFacet until then.

Severity

error

Basis

UNSUPPORTED

Editor code

GRAPHITRON_AUTHORED_CONNECTION_FACET_UNSUPPORTED

Best-effort guidance, not yet reviewed.

Reported at the @asFacet, naming the input type in the detail. The schema is valid; the build stops until graphitron generates the shape.

A facet’s counts surface on a facets field graphitron generates onto the connection type, with its facets type. It generates them only onto a connection type @asConnection generates; a connection type you declare yourself does not gain one yet. Where every field returning a connection that takes the input returns such a declared type, the counts have nowhere to surface for now:

input FilmFilter { title: [String!] @field(name: "title") @asFacet }

type Query {
  films(filter: FilmFilter, first: Int, after: String): FilmsPage
}

with FilmsPage a connection type declared in the schema.

Instead. Return an @asConnection connection from a field taking the filter, which gains the facets, or remove @asFacet until graphitron generates facets onto declared connection types.

BUILD_NODE_ID_LIST_UNSUPPORTED

An input field holding a list of node ids sits in an input object built into a jOOQ record, where a list of ids writes no one column, which is not built yet: take the ids as an argument of their own, or give the record one id.

Severity

error

Basis

UNSUPPORTED

Editor code

GRAPHITRON_BUILD_NODE_ID_LIST_UNSUPPORTED

Best-effort guidance, not yet reviewed.

Reported at the input field. Valid: a list of node ids is a legal input field, and @nodeId on it decodes each element.

An input object a call builds into a jOOQ record writes each field into a column of the record’s table, and a node id writes its node’s key into the key’s columns. A list of ids has no one column to write, and graphitron does not build a record from one yet.

Instead. Take the ids as an argument of their own, outside the input object built into the record, or give the record field one id rather than a list. The @service constraints list what an input object built into a record may hold.

BUILD_NODE_ID_SEVERAL_TYPES_UNSUPPORTED

An input field holding the id of several node types sits in an input object built into a jOOQ record, which takes one node's key, so the build does not place it yet: name one node type with @nodeId(typeName:), or take the id outside the record.

Severity

error

Basis

UNSUPPORTED

Editor code

GRAPHITRON_BUILD_NODE_ID_SEVERAL_TYPES_UNSUPPORTED

Best-effort guidance, not yet reviewed.

Reported at the input field. Valid: @nodeId(typeName:) may name a union or interface whose members are nodes, and such an id is legal input.

An input object a call builds into a jOOQ record writes a node id’s decoded key into the record’s columns, which are one node’s key. An id that may belong to any of several node types has no one set of columns to land in, and graphitron does not place it in a record yet.

Instead. Name one node type with @nodeId(typeName:), or take the id outside the input object built into the record, as an argument or a parameter of its own. The @service constraints list what an input object built into a record may hold.

CONTEXT_SITE_UNSUPPORTED

An argMapping binds a parameter to $context.<key> under @condition, @routine, @outbox, a @reference path step's condition or @record, whose generated code does not read it yet: on @service write the pair; elsewhere name the key in contextArguments where the directive takes them, which fills the parameter of the same name.

Severity

error

Basis

UNSUPPORTED

Editor code

GRAPHITRON_CONTEXT_SITE_UNSUPPORTED

Best-effort guidance, not yet reviewed.

Reported at the argMapping entry. Valid: $context.<key> binds a parameter to the value the request context carries under the key, which may be spelt apart from the parameter.

Graphitron reads a $context entry into the call at a @service, root or child. Under @condition, @routine, @outbox, a @reference path step’s condition and @record, the code generated does not read it yet.

Instead. On @service, write the entry there. Elsewhere name the key in contextArguments where the directive takes them, which fills the parameter of the same name, renaming the parameter after the key where the two differ. See @service constraints.

EXTERNAL_FIELD_PATH_UNSUPPORTED

An @externalField on a field that also writes a @reference path is not supported yet: the method takes the table the field's values are rows of, and an expression at the path's end is not bound. Remove the @reference and reach the joined table inside the method.

Severity

error

Basis

UNSUPPORTED

Editor code

GRAPHITRON_EXTERNAL_FIELD_PATH_UNSUPPORTED

Best-effort guidance, not yet reviewed.

Reported at the @reference. Valid: an expression could be computed on the table a @reference path arrives at.

The @externalField method takes the table the field’s values are rows of, and graphitron binds the expression there; binding it at the end of a written path, joined in from the parent’s row, is not generated yet.

Instead. Remove the @reference and reach the joined table inside the method, or read the field from a type over the joined table. See the @externalField constraints.

FACETED_CONNECTION_UNSUPPORTED

A connection with @asFacet filter fields is generated only as a root Query field over a @table-bound object type: a faceted connection under another type, fetched in a batch over its parents, or one over an interface or a union, is not generated yet. Move the connection to the root, or remove @asFacet from its filter.

Severity

error

Basis

UNSUPPORTED

Editor code

GRAPHITRON_FACETED_CONNECTION_UNSUPPORTED

Best-effort guidance, not yet reviewed.

Reported at the connection field. The schema is valid; the build stops until graphitron generates the shape.

The facet counts are computed by the root Query fetcher, over the rows of one table. A faceted connection under another type, fetched in a batch over its parents, or one over an interface or a union, has no fetcher that computes them yet.

Instead. Move the connection to the root Query type, or remove @asFacet from its filter. @asFacet constraints lists where facets are generated.

FILTER_SCALAR_AGAINST_ARRAY_COLUMN

A filter argument or input field of one value is bound to an array column, and one value is no value of an array, so the filter has nothing to compare: declare the argument a list, which is compared with the array whole, or filter the array with a @condition.

Severity

error

Basis

UNSUPPORTED

Editor code

GRAPHITRON_FILTER_SCALAR_AGAINST_ARRAY_COLUMN

Best-effort guidance, not yet reviewed.

Reported at the argument or input field; the detail names the array column. Valid: comparing one value with an array column, for example as membership, is meaningful.

A filter argument or input field bound to a column compares its value with the column’s. An array column holds an array, so a list argument is compared with it whole, element for element, and a single value has no array to equal. Graphitron does not yet write a membership test of one value against an array column. A bytea column, which jOOQ binds to byte[], is one binary value rather than an array, and is compared as any other column.

Instead. Declare the argument or input field a list, to match rows whose array equals it, or write a @condition on it with override: true that compares the value as you mean it, for example with the database’s array containment operator.

GENERATED_SCALAR_LIST_UNSUPPORTED

An argument or input field of a @generatedScalar type is a list, or is read through one, and decoding a value per element is not supported yet: take one value.

Severity

error

Basis

UNSUPPORTED

Editor code

GRAPHITRON_GENERATED_SCALAR_LIST_UNSUPPORTED

Best-effort guidance, not yet reviewed.

Reported at the argument or input field, the detail naming the scalar.

A generated scalar is decoded once per call, into one record of components, before the call runs. A list of them, or one read through a list of input objects, would need a decode and a check per element, which is not generated yet.

Next step. Take one value per argument or input field. Until lists are supported, a call that needs several paths takes several arguments. See `@generatedScalar’s constraints.

GENERATED_SCALAR_SITE_UNSUPPORTED

A @generatedScalar component is bound at a call whose decode is not generated yet, a @condition or a @routine other than a mutation's write: take the component at a @service or a mutation's @routine.

Severity

error

Basis

UNSUPPORTED

Editor code

GRAPHITRON_GENERATED_SCALAR_SITE_UNSUPPORTED

Best-effort guidance, not yet reviewed.

Reported at the argMapping string, the detail naming the directive, condition or routine.

A generated scalar’s component is handed to a parameter by the call that decodes the value, and the decode is generated for @service calls, root and child, and for a @routine that writes on the mutation root. A @condition, a @routine read on the query root, and a @routine step of a field’s path are still rendered without that decode, so they cannot take a component yet.

Next step. Take the component at a @service, or at a @routine on the mutation root, and leave the generated scalar out of the @condition or the @routine step. See Where a value is checked.

LIST_ELEMENT_PATHS_DIFFER

Fields of one element of a list of input objects a filter compares reach their columns over different paths, and the element is compared as one row over the one path its fields share: give the element's fields one path, or filter the other fields outside the list.

Severity

error

Basis

UNSUPPORTED

Editor code

GRAPHITRON_LIST_ELEMENT_PATHS_DIFFER

Best-effort guidance, not yet reviewed.

Reported at each element field that reaches its column over another path than a sibling field of the same element.

A filter field typed as a list of input objects matches rows equal to any one element, comparing the element’s fields together as one row ((c1, c2) IN ..), (..). That reading holds only when every element field is one value bound to a column, so the build refuses an element field that is itself a list or a list of input objects, is a node id, or carries @condition; one that binds no column is COLUMN_UNRESOLVED, as anywhere else. Each defect sits at the element field, because the same input type is fine elsewhere (as a non-list nested input, or as a @service parameter), and one declaration read through two list filters is one defect. A @lookupKey list is the lookup’s key rather than a filter, and none of this applies to it. Under a @condition written with override: true, on the list field or anything enclosing it, the condition owns the list and its elements are not compared as rows, so only LIST_ELEMENT_CONDITION still applies there.

The element fields' columns may all sit on the filtered table, or all on one table reached through the same @reference path, so the build also refuses, as LIST_ELEMENT_PATHS_DIFFER, element fields whose columns are reached through different @reference paths, two paths reaching one table over different keys or conditions among them, or that mix the filtered table’s own columns with a path.

Next step. Give every element field the same @reference path, or move the field out of the element type. To filter on a shape the row cannot express, put @condition(override: true) on the list field; the method receives the whole list and owns the predicate. @field on a list-of-input filter describes the semantics.

MUTATION_UPSERT

@mutation(typeName: UPSERT) is a write graphitron does not generate yet: the conflict target's uniqueness and the bulk upsert are not designed.

Severity

error

Basis

UNSUPPORTED

Editor code

GRAPHITRON_MUTATION_UPSERT

Best-effort guidance, not yet reviewed.

Reported at the @mutation. Valid: UPSERT is one of the write kinds @mutation(typeName:) accepts.

An upsert needs a conflict target, the unique key whose clash turns the insert into an update, and a bulk form for a list of inputs; neither is designed yet, so graphitron generates no upsert.

Instead. Write the field as an INSERT or an UPDATE, or perform the upsert in a @service or a @routine of your own. See @mutation.

NODE_ID_PARTICIPANT_WITHOUT_NODE

A node id filters a field over several tables, each participant decoding the ids of its own node, and one participant's table has no node of the id, so the filter cannot say which of its rows an id names: give that participant a node, or filter it with a @condition of its own.

Severity

error

Basis

UNSUPPORTED

Editor code

GRAPHITRON_NODE_ID_PARTICIPANT_WITHOUT_NODE

Best-effort guidance, not yet reviewed.

Reported at the @nodeId, or at the argument or input field where the id is read without one; the detail names the participant’s table. Valid: an id filter on a field over several tables is meaningful where a participant has no node of the id, and matches none of that participant’s rows.

A bare @nodeId on an argument of a field returning a union or an interface with no table of its own binds one node per participant table, and each participant decodes only the ids carrying its own node’s type id. A participant whose table has no node of the id has no type id to keep and no key to compare, and graphitron does not yet write the filter that answers none of its rows when an id is given.

Instead. Make the participant a node with @node, filter the field on a type with a node of its own, or take the id with a @condition written with override: true and decide in your own method what it matches. See @nodeId.

NODE_ID_TABLE_WITHOUT_RECORD

A node id is decoded into its node's key through the node table's generated record, and jOOQ generated none for this table: generate records for it, or take the id somewhere it is not decoded.

Severity

error

Basis

UNSUPPORTED

Editor code

GRAPHITRON_NODE_ID_TABLE_WITHOUT_RECORD

Best-effort guidance, not yet reviewed.

Reported at the @nodeId, the table named in the detail. Valid: a node over any table may be decoded.

Graphitron decodes a node id into its node’s key through the node table’s generated jOOQ record, and jOOQ generated none for this table, for example because the jOOQ code generation excludes its records.

Instead. Generate records for the table in your jOOQ configuration, or take the id somewhere it is not decoded, for example as a plain ID without @nodeId that your own code decodes.

ORDERING_ACROSS_PARTICIPANTS

A field returning a union or an interface with no table of its own is read as one statement per participant, combined on their primary keys, so an ordering declared on it is not applied and rows arrive in participant primary-key order: remove the declaration, or return a single @table type.

Severity

error

Basis

UNSUPPORTED

Editor code

GRAPHITRON_ORDERING_ACROSS_PARTICIPANTS

Best-effort guidance, not yet reviewed.

Reported at each declaring directive, the @defaultOrder or the @orderBy. Valid: an ordering on a union or interface field is meaningful.

A field returning a union or interface with no table of its own is read as one statement per participant table, and graphitron combines the results on their primary keys. The declared ordering is not applied to the combined rows yet, so they would arrive in participant primary-key order whatever the declaration says. A list or connection on a root field reaching that read applies the ordering on every participant and is not refused; under a parent’s row, or at a root field graphitron reads another way (a single value, a @service, a @lookupKey, a @routine, Query.nodes), it is.

Instead. Remove the declaration and rely on participant primary-key order, return a single @table type, or give the interface a @table of its own so the field is one statement. See How-to: Polymorphic types.

ORDER_CHOICE_ON_INLINE_LIST

An @orderBy argument sits on a list read inside its parent's query, and graphitron does not yet apply a client's choice of order there, so the choice would be accepted and dropped: read the list in a query of its own with @splitQuery, or order it with @defaultOrder.

Severity

error

Basis

UNSUPPORTED

Editor code

GRAPHITRON_ORDER_CHOICE_ON_INLINE_LIST

Best-effort guidance, not yet reviewed.

Reported at the @orderBy argument. The schema is valid: a client’s choice of order on a list is meaningful wherever the list is read.

A list read inside its parent’s query is selected as part of that statement, and graphitron does not yet carry a client’s choice of order into it; accepting the argument and ignoring it would hand back rows in an order the client did not ask for, so the build stops instead.

Instead. Read the list in a query of its own with @splitQuery, where the choice is applied, or drop the @orderBy argument and fix one order with @defaultOrder.

PARAMETER_TYPE_UNSPELLED

A @condition method's parameter is typed as a member of a parameterised class, Outer<A>.Inner, which the generated condition cannot declare a local of yet: take the member's own class, or a type the argument arrives as.

Severity

error

Basis

UNSUPPORTED

Editor code

GRAPHITRON_PARAMETER_TYPE_UNSPELLED

Best-effort guidance, not yet reviewed.

Reported at the `@condition’s method reference, naming the parameter.

The generated condition reads each parameter’s value into a local of the parameter’s declared type. A type that is a member of a parameterised class, such as Outer<A>.Inner, is not one the generator can declare a local of yet.

Next step. Declare the parameter as the member’s own class, or as a type the argument arrives as. See @condition.

ROOT_REFERENCE_WITHOUT_ROUTINE

A @reference on a root field needs a leading @routine to start from: a root field has no source row for the path to depart from.

Severity

error

Basis

UNSUPPORTED

Editor code

GRAPHITRON_ROOT_REFERENCE_WITHOUT_ROUTINE

Best-effort guidance, not yet reviewed.

Reported at the @reference. A path on a root field is meaningful once something gives it a start, and graphitron takes that start only from a @routine written before the @reference.

A @reference path departs from the row of the type that declares the field. A root field has no such row, so the path departs from nothing; a leading @routine gives it one, the routine’s result rows. A @routine written only after the @reference does not, the path having to be part of the table-bound read the routine starts. A write on Mutation is a root field like any other here.

Instead. Write the @routine before the @reference on the field, or move the field onto a @table type whose rows the path can depart from.

ROUTINE_LOOKUP_DEFERRED

@routine with @lookupKey on one field, at the root or as a step of a split child's path, classifies but graphitron does not generate it yet.

Severity

error

Basis

UNSUPPORTED

Editor code

GRAPHITRON_ROUTINE_LOOKUP_DEFERRED

Best-effort guidance, not yet reviewed.

Reported at the field. Valid: a root field may call a @routine and narrow its rows by @lookupKey arguments.

Graphitron classifies the combination, but does not generate the lookup over a routine’s result yet.

Instead. Drop @lookupKey and pass the keys to the routine as parameters through argMapping, so the routine narrows its own rows, or read the rows from the table with a @lookupKey field and no @routine. See @routine and @lookupKey.

ROUTINE_NODE_ID_LIST_UNSUPPORTED

A list of node ids reaches a @routine parameter, at the root or as a step of a child's path, which takes one value or an array, and no routine call decodes a list of ids into one yet: take one id, or the list of a key column through a @service.

Severity

error

Basis

UNSUPPORTED

Editor code

GRAPHITRON_ROUTINE_NODE_ID_LIST_UNSUPPORTED

Best-effort guidance, not yet reviewed.

Reported at the @nodeId, the routine parameter named in the detail. Valid: a list of node ids is a legal argument, and a @service parameter takes it as a List of the key column it projects.

A @routine parameter takes one value, or an array where the database function takes one, so a node id bound to it is decoded and one key column handed over. Graphitron does not yet decode a list of ids into an array of that column for a routine call.

Instead. Take one id per call, or pass the list to a @service that hands the routine its keys. See Projecting a key column out of a node id.

ROUTINE_WRITE_LIFT_WITHOUT_STEP_UNSUPPORTED

A routine write hands back records of a table along no path out of the function's result, so it has no key to capture and lift them by, and such a write is not generated yet: write a @reference path from the function's result to the table.

Severity

error

Basis

UNSUPPORTED

Editor code

GRAPHITRON_ROUTINE_WRITE_LIFT_WITHOUT_STEP_UNSUPPORTED

Best-effort guidance, not yet reviewed.

Reported at the field, the detail naming the table the records land on.

A @routine write returning records of a table reads them by capturing the key of the first table its path reaches out of the function’s result, and re-reading from there after the write. With no @reference step after the routine there is no such table, and that write is not generated yet.

Next step. Write a @reference path from the function’s result to the table. See Writes on Mutation.

ROUTINE_WRITE_NODE_ID_FROM_KEYS_UNSUPPORTED

A field under a routine write's object result encodes a node id from the keys the routine returned, and such a re-read is not generated yet: read the node's table under the result instead.

Severity

error

Basis

UNSUPPORTED

Editor code

GRAPHITRON_ROUTINE_WRITE_NODE_ID_FROM_KEYS_UNSUPPORTED

Best-effort guidance, not yet reviewed.

Reported at the field, the detail naming the field under the result that encodes the id.

A field under a @routine write’s object result that encodes a node id from the keys the routine returned is not generated yet: the re-read that would read those keys back is the one the write captures for a table-bound field.

Next step. Read the node’s table under the result, a field of its @table type, and take the id from there. See Writes on Mutation.

ROUTINE_WRITE_NON_NULL_RE_READ_UNSUPPORTED

The one field re-reading a routine write's object result is single and non-null, and a re-read finding no row could not answer it: make the field nullable.

Severity

error

Basis

UNSUPPORTED

Editor code

GRAPHITRON_ROUTINE_WRITE_NON_NULL_RE_READ_UNSUPPORTED

Best-effort guidance, not yet reviewed.

Reported at the field, the detail naming the re-reading field.

The one field re-reading a @routine write’s object result is single and non-null, and the result has no errors field. A re-read that finds no row, a routine that wrote nothing or a row the caller may not read, could not answer such a field.

Next step. Make the field nullable. See Writes on Mutation.

ROUTINE_WRITE_SEVERAL_RE_READS_UNSUPPORTED

A routine write's object result is re-read by more than one field, and the write captures the keys of one: keep one field re-reading the result.

Severity

error

Basis

UNSUPPORTED

Editor code

GRAPHITRON_ROUTINE_WRITE_SEVERAL_RE_READS_UNSUPPORTED

Best-effort guidance, not yet reviewed.

Reported at the field, the detail giving how many fields re-read the result.

A @routine write’s object result is re-read by the fields under it after the write, keyed by what the routine returned, and the write captures the keys of one such field. More than one is not generated yet.

Next step. Keep one field re-reading the result. See Writes on Mutation.

SCALAR_PATH

A value is read off another table by a path the reading site does not follow yet: under a discriminated @service, a participant's field reads its value more than one step off the shared table, or by a path not departing it. Read it one step off the shared table, or read the rows with a field graphitron fetches. Other sites that cannot read a scalar down a path join this code rather than mint their own.

Severity

error

Basis

UNSUPPORTED

Editor code

GRAPHITRON_SCALAR_PATH

Best-effort guidance, not yet reviewed.

Reported at the field reading the value. Valid: a value may be read off another table down a @reference path of any length, and is, under a field graphitron fetches.

The site the field sits at does not follow that path yet. Today that site is a participant of a discriminated `@service’s result: the service’s lift reads each participant off the shared table and follows one step from it, so a value more than one step off the shared table, or down a path that does not depart from it, has nothing to read it. Other sites that cannot read a scalar down a path report this code too.

Instead. Read the value one step off the shared table, or read the rows with a field graphitron fetches rather than a @service. See the @service constraints.

SERVICE_ARGUMENT_PATH_UNSUPPORTED

A @service parameter is filled from an argument path that steps through a list above its last name and lands on a node id, an input object, or an enum the parameter takes as its Java constant, or the parameter collects the elements in a container other than a java.util.List for each list the path steps through, where each element is read for a scalar or an enum's name only and each list arrives as a java.util.List: hand the parameter the list itself, take the enum by name, land the path on a scalar, or declare the parameter a List.

Severity

error

Basis

UNSUPPORTED

Editor code

GRAPHITRON_SERVICE_ARGUMENT_PATH_UNSUPPORTED

Best-effort guidance, not yet reviewed.

Reported at the argMapping. Valid: an argMapping path may step through a list and land on any field of the elements.

Where a path steps through a list above its last name, graphitron reads each element’s value for a scalar, or for an enum the parameter takes by its name as a String, and hands each list over as a java.util.List. Landing such a path on a node id, an input object, or an enum the parameter takes as its Java constant, or collecting the elements in a Set, a Collection or another container, is not read yet.

Instead. Hand the parameter the list itself, take the enum by name, land the path on a scalar, or declare the parameter a List for each list the path steps through. Binding a parameter to a nested input field describes the paths.

SERVICE_BATCH_SHAPE_UNSUPPORTED

A @service under an object takes its keys or answers in a shape the batch does not read: keys in a container delivering many, a jOOQ Result only of the parent's table records; an answer a Map by key, or a List or Result in the keys' order under keys a List, Collection or Result gives an order: take a Set and answer a Map, or take a List and answer a List.

Severity

error

Basis

UNSUPPORTED

Editor code

GRAPHITRON_SERVICE_BATCH_SHAPE_UNSUPPORTED

Best-effort guidance, not yet reviewed.

Reported at the @service field. A child @service is called once per request with the keys of every parent the request touched, and answers one value per key. Some valid Java signatures for that are not read by the generated batch yet: keys in a container delivering many, a jOOQ Result, unless it holds the parent table’s own records; an answer that is a Map by key under keys in a list; or a List or Result answer, which is read in the keys' order, under keys whose container gives no order, such as a Set.

Instead. Take the keys as a Set and answer a Map from key to value, or take them as a List and answer a List in the same order. The @service constraints describe the batch signatures.

SERVICE_CHILD_POLYMORPHIC_UNSUPPORTED

A @service under an object answers an interface or union whose rows may be any of several participants, which is lifted for a root @service only: move the call to a root field, or answer one participant's type.

Severity

error

Basis

UNSUPPORTED

Editor code

GRAPHITRON_SERVICE_CHILD_POLYMORPHIC_UNSUPPORTED

Best-effort guidance, not yet reviewed.

Reported at the @service field. Valid: a child @service may answer an interface or union whose rows belong to several participants.

A @service answering such a type is lifted participant by participant, each read from its own table. Graphitron does this for a root @service only; under an object the call is batched over the parents, and the batch is not split by participant yet. An outcome, the call’s success beside its errors, is no such answer and is not refused.

Instead. Move the call to a root field, or answer one participant’s type. See the @service constraints.

SERVICE_CHILD_VALIDATION_UNSUPPORTED

A @service whose outcome claims validation runs under an object, or answers participants on tables of their own, where its arguments are not validated yet: validation runs once per fetch of a root @service lifting onto at most one table. Move the call to a root field, or drop the VALIDATION handler.

Severity

error

Basis

UNSUPPORTED

Editor code

GRAPHITRON_SERVICE_CHILD_VALIDATION_UNSUPPORTED

Best-effort guidance, not yet reviewed.

Reported at the @service field. Valid: an outcome’s @error type may claim the VALIDATION handler wherever the service runs.

Validation runs once per fetch, before the call, at a root @service whose result lifts onto at most one table. Under an object the call is batched over many parents, and a result on several participants' tables is lifted in several reads, and neither validates its arguments yet.

Instead. Move the call to a root field, or drop the VALIDATION handler from the outcome’s error type. See the @service constraints.

SERVICE_CONNECTION_UNSUPPORTED

A @service field returns a connection, which graphitron would page from the rows the service answers, and that is not generated for a service yet: return a list, or read the rows with a field graphitron fetches and pages.

Severity

error

Basis

UNSUPPORTED

Editor code

GRAPHITRON_SERVICE_CONNECTION_UNSUPPORTED

Best-effort guidance, not yet reviewed.

Reported at the @service field. Valid: a @service field may return a connection.

Graphitron would page the rows the service answers, cursors and pageInfo included, and that paging is generated for fields graphitron fetches but not for a service yet.

Instead. Return a list from the @service, or read the rows with a field graphitron fetches and pages, with @asConnection. See the @service constraints.

SERVICE_DISCRIMINATED_OBJECT_PATH_UNSUPPORTED

A participant of a discriminated @service's result answers an object with no table of its own read down a path, where the service's lift reads each participant off its one row: read the object off the row, give its type a @table, or read the rows with a field graphitron fetches.

Severity

error

Basis

UNSUPPORTED

Editor code

GRAPHITRON_SERVICE_DISCRIMINATED_OBJECT_PATH_UNSUPPORTED

Best-effort guidance, not yet reviewed.

Reported at the participant’s field. Valid: an object with no table of its own may be read down a @reference path, and is, under a field graphitron fetches.

A @service answering a discriminated interface or union is lifted by reading each participant off its one shared row. An object read down a path needs a join from that row, which the service’s lift does not make yet.

Instead. Read the object off the participant’s own row, without a path; give the object’s type a @table of its own; or read the rows with a field graphitron fetches rather than a @service. See the @service constraints.

SERVICE_DISCRIMINATED_OWN_TABLE_UNSUPPORTED

A @service returns an interface or union whose participants a discriminator tells apart on one shared table, and one of them is told apart by a table of its own, which the service's lift does not read yet: keep every participant on the shared table, or read the rows with a field graphitron fetches.

Severity

error

Basis

UNSUPPORTED

Editor code

GRAPHITRON_SERVICE_DISCRIMINATED_OWN_TABLE_UNSUPPORTED

Best-effort guidance, not yet reviewed.

Reported at the @service field. Valid: a discriminated interface may have participants on tables of their own, and a field graphitron fetches reads them.

A @service answering a discriminated interface or union is lifted by reading each participant off the one shared row its discriminator sits on. A participant on a table of its own needs a read of that table too, which the service’s lift does not do yet.

Instead. Keep every participant on the shared table, or read the rows with a field graphitron fetches rather than a @service. See @discriminate and the @service constraints.

SERVICE_KEY_OFF_OBJECT_UNSUPPORTED

A @service under a parent holding an object rather than a table's row takes its keys as jOOQ rows or records of the key columns, which are not read off a member of the object yet: take the keys as the table's own records, which the member returning them hands over, or give the parent type a @table.

Severity

error

Basis

UNSUPPORTED

Editor code

GRAPHITRON_SERVICE_KEY_OFF_OBJECT_UNSUPPORTED

Best-effort guidance, not yet reviewed.

Reported at the @service field. Valid: a child @service may take its keys as jOOQ Row<N> or Record<N> of the key columns.

Under a parent holding a table’s row, those keys are projected from the row. Under a parent holding an object, the keys are read off the one member of the object’s class that returns records of the table, and graphitron hands over those records as they are; reducing them to rows or records of the key columns is not generated yet.

Instead. Take the keys as the table’s own records, which the member returning them hands over, or give the parent type a @table so its rows are read and the keys projected from them. See the @service constraints.

SERVICE_KEY_TOO_WIDE_UNSUPPORTED

A @service hands back records of a table whose primary key has more columns than its records can be read back by: each is lifted through a typed jOOQ record of its key and two more values, and jOOQ types records of at most 22. Return a table with a narrower key, or a type that binds no table.

Severity

error

Basis

UNSUPPORTED

Editor code

GRAPHITRON_SERVICE_KEY_TOO_WIDE_UNSUPPORTED

Best-effort guidance, not yet reviewed.

Reported at the @service field. Valid: a service may hand back records of any table.

Graphitron reads a service’s records back through a typed jOOQ record holding each one’s key columns and two more values, its position and its parent’s. jOOQ types records of at most 22 values, so a table whose primary key has more than 20 columns has no record to read its rows back by.

Instead. Return records of a table with a narrower key, or return a type that binds no table, whose values are read as the service hands them over.

SERVICE_SEVERAL_OCCURRENCES_UNSUPPORTED

A @service on a type with no table of its own is reached from more than one place, each a producer of its own, and the field has one fetcher, which serves one place only so far: declare the service on a type reached from one place, or give the type a @table.

Severity

error

Basis

UNSUPPORTED

Editor code

GRAPHITRON_SERVICE_SEVERAL_OCCURRENCES_UNSUPPORTED

Best-effort guidance, not yet reviewed.

Reported at the @service field. Valid: a type with no table of its own may be nested under several types, and a @service on it means the same under each.

Each place the type is reached from is a read of its own, a producer with its own parent rows, while the field has one generated fetcher, which serves one place so far.

Instead. Declare the service on a type reached from one place, for example by giving each place a nesting type of its own, or give the type a @table so its rows are read the same way wherever it is reached. See the @service constraints.

SERVICE_TENANT_FAN_OUT_UNSUPPORTED

A child @service under a global table reads a tenant's rows by a key landing on the tenant column, so its parents would be grouped by the tenant each names, which is not generated for a service yet: read the rows with a field graphitron fetches, or move the service under a type whose rows a tenant holds.

Severity

error

Basis

UNSUPPORTED

Editor code

GRAPHITRON_SERVICE_TENANT_FAN_OUT_UNSUPPORTED

Best-effort guidance, not yet reviewed.

Reported at the @service field. Valid in a build with database-per-tenant routing (<tenantColumn>): the service reads a tenant’s rows by a key landing on the tenant column, from parents on a global table.

Each parent row names its own tenant, so the parents would have to be grouped by tenant and the service called once per group, on that tenant’s connection. Graphitron generates that grouping for fields it fetches but not for a service yet.

Instead. Read the rows with a field graphitron fetches, or move the service under a type whose rows a tenant holds, where it runs on its parent’s tenant. How-to: Tenant scoping covers how calls are routed.

SESSION_PROJECTION_PATH_UNSUPPORTED

A table-bound type whose fields read the session through a @condition is selected by a node fetcher, the entity dispatch or the fetch of a multi-table or discriminated interface or union, and the generated read of a type whose projection reads the session does not hand it the connection yet on this path: reach the type through a field returning it, or read the session-reading field by a query of its own.

Severity

error

Basis

UNSUPPORTED

Editor code

GRAPHITRON_SESSION_PROJECTION_PATH_UNSUPPORTED

Best-effort guidance, not yet reviewed.

Reported at the field reading an interface or union, or at the type for a node or federation entity. Valid: a type whose fields read the session through a @condition may be a node, an entity or a participant of an interface or union, and is read the same way under a field returning it.

A @condition binding $session or $session.<member> on a field read into its parent’s statement makes the parent type’s projection take the statement’s connection, and so every type projecting that one, through the fields read into its own statement. A field returning the type, and a @service lifting onto the type, hand the connection over. The node fetcher and the federation entity dispatch, which Query.node and _entities both read through, and the fetch of an interface or union whose participants are told apart by their tables or by a discriminator, select the type’s projection without it, which graphitron does not generate yet.

Instead. Reach the type through a field returning it rather than through the interface, union, node or entity; read the session-reading field by a query of its own, with @splitQuery, so it no longer reads into the type’s statement; or move the condition to a type these paths do not read. The @condition reference covers how a $session pair binds.

SUBSCRIPTION_FIELD

A field on the subscription root is a subscription, and graphitron generates no subscription resolver yet.

Severity

error

Basis

UNSUPPORTED

Editor code

GRAPHITRON_SUBSCRIPTION_FIELD

Best-effort guidance, not yet reviewed.

Reported at the field’s declaration. Valid: a subscription root is part of GraphQL.

Graphitron generates no subscription resolver yet, so a field on the subscription root would have nothing behind it.

Instead. Leave the subscription root out of the schema graphitron reads until subscriptions are generated.

TENANT_FAN_OUT_INLINE_UNSUPPORTED

A field whose foreign key reaches a tenant's rows from a global table is routed by its parent row's tenant, and needs @splitQuery until its producer is emitted from the store: write @splitQuery on the field.

Severity

error

Basis

UNSUPPORTED

Editor code

GRAPHITRON_TENANT_FAN_OUT_INLINE_UNSUPPORTED

Best-effort guidance, not yet reviewed.

Reported at the field. Valid in a build with database-per-tenant routing (<tenantColumn>): the field’s foreign key reaches a tenant’s rows from a global table, so its parents may each name a different tenant.

Such a field is a read of its own per tenant, which cannot be part of its parent’s statement on the parent’s connection. Graphitron generates it only as a split query so far.

Instead. Write @splitQuery on the field. How-to: Tenant scoping covers how a field is routed.

TENANT_FAN_OUT_NESTED_UNSUPPORTED

A field of a type nested under a global table reaches a tenant's rows by a key landing on the tenant column, which is not routed by the parent row's tenant yet: declare the field on a type with its own @table, or read the rows through an argument naming the tenant.

Severity

error

Basis

UNSUPPORTED

Editor code

GRAPHITRON_TENANT_FAN_OUT_NESTED_UNSUPPORTED

Best-effort guidance, not yet reviewed.

Reported at the field. Valid in a build with database-per-tenant routing (<tenantColumn>): the field’s foreign key lands on the tenant column, so each parent row names the tenant whose database holds the rows it reaches.

The field is declared on a type with no @table of its own, nested under a type over a global table. Routing it by its parent row’s tenant needs to know, for each place the nesting type is reached, which row that is, and graphitron does not state that for a nesting type yet.

Instead. Declare the field on a type with its own @table, so its parent’s row is the row it routes by, or read the rows through an argument that names the tenant. How-to: Tenant scoping covers how a field is routed.

TENANT_FAN_OUT_ON_SERVICE

A @tenantFanOut marks a field a @service answers: the marker reads every tenant the request may see with a statement graphitron writes, and a service is called once, on one connection, which is not generated once per tenant yet. Remove the marker, or read the rows with a field graphitron fetches and mark that.

Severity

error

Basis

UNSUPPORTED

Editor code

GRAPHITRON_TENANT_FAN_OUT_ON_SERVICE

Best-effort guidance, not yet reviewed.

Reported at the @tenantFanOut on a field a @service answers, a root field or one under an object.

@tenantFanOut reads every tenant the request may see by running a statement graphitron writes once per tenant. A service is your own code, called once on one connection, and graphitron does not generate a call per tenant for it yet, so the marker would name a route the service does not run on.

Instead. Remove the marker and let the service run where its field is routed, or read the rows with a field graphitron fetches and mark that field. How-to: Tenant scoping covers how a service call is routed.

TENANT_SITE_UNSUPPORTED

An argMapping names $tenant, or @tenant marks an argument or input field, where nothing routes by it yet: the tenant is named for a root @service's call, so write $tenant in that @service's argMapping, or mark a value it reads. A child service runs on its parent's tenant, and a query binds it through @field(name:) on the tenant column.

Severity

error

Basis

UNSUPPORTED

Editor code

GRAPHITRON_TENANT_SITE_UNSUPPORTED

Best-effort guidance, not yet reviewed.

Reported at the $tenant entry or the @tenant. Valid in a build with database-per-tenant routing: naming a tenant is meaningful at more sites than are routed today.

Graphitron routes by a named tenant only at a root @service’s call: it runs that call on the tenant’s connection. Nothing routes by `$tenant or @tenant anywhere else yet, so a value named there would be ignored.

Instead. Write $tenant in a root @service’s `argMapping, or mark a value that service reads. A child service runs on its parent’s tenant and needs none; a query field binds the tenant through @field(name:) on the tenant column. See @tenant and argMapping.

VOUCHER_ACCEPT_NOT_GENERATED

@accept is on a type with a connection below it, at any depth through the types its subtree reads, and a connection does not yet read on the vouched connection: read those rows as a list, in the entity's SELECT, a split query or a @service.

Severity

error

Basis

UNSUPPORTED

Editor code

GRAPHITRON_VOUCHER_ACCEPT_NOT_GENERATED

Best-effort guidance, not yet reviewed.

Reported at the @accept. Valid: an accepting type may have a connection anywhere below it.

An accepting type’s entity is read on the vouched connection, and so is every field below it: what its statement projects, and every field with a fetcher of its own, a split query or a @service, on the connection the entity row hands down. A connection below it pages in a read graphitron does not run on the vouched connection yet.

Instead. Read those rows as a list: in the entity’s statement, by a split query, or by a @service. See the @accept constraints and How-to: Voucher handover.

VOUCHER_ACCEPT_WITH_TENANT_COLUMN

@accept is in a build with a <tenantColumn>, and a voucher is not yet paired with the tenant of the key it decodes to: accept vouchers in a single-tenant build.

Severity

error

Basis

UNSUPPORTED

Editor code

GRAPHITRON_VOUCHER_ACCEPT_WITH_TENANT_COLUMN

Best-effort guidance, not yet reviewed.

Reported at the @accept. Valid: a database-per-tenant subgraph may accept vouchers.

A vouched connection is keyed by the vouched-for values alone, and nothing pairs a voucher yet with the tenant of the key it decodes to, so an accepting type could read a voucher on the wrong tenant’s database.

Instead. Accept vouchers only in a build with no <tenantColumn>, or resolve the entity without a voucher. See the @accept constraints.