Prefix: federation_.
What Apollo Federation itself says, as the federation library graphitron builds with answers it: which specification versions a link may name, and what each version lets a link import. Graphitron reads these rather than listing them, so the imports it adds to a link are ones the library will accept.
Where to start
- federation_version
-
One federation specification version the federation library supports.
- federation_version_import
-
One name a federation version’s link may import.
How this family meets the others
store_-
1 foreign key from this family’s rows into that one.
graphitron_-
1 foreign key from that family’s rows into this one.
Why the name is right
Federation’s own vocabulary, read from federation-jvm through its public API and written in federation’s spellings: versions as a link’s url names them, imports as a link’s import list spells them. Partitioned by source rather than by graph, the library being one source every graph claims, on sql_'s terms. What a graph’s own link says, and what graphitron makes it import, are not here: the first is the SDL decode’s and the second graphitron’s rule over the mint.
federation_version
One federation specification version the federation library supports. For example v2.10, a link whose url ends in v2.10 being one the library on graphitron’s classpath accepts.
Primary key: (source_name, version). Foreign key: (source_name) references store_source (source_name).
source_name(CHARACTER VARYING, not null)-
the library, by its group and artifact, anchored by store_source, whose stamp is the content of the jar these rows were read from; the jar carries no Maven metadata naming its release, so a changed stamp is read whole
version(CHARACTER VARYING, not null)-
the version as a link’s url spells it after the federation specification’s prefix, for example v2.10, which is how graphitron_ast_federation_link_entry spells the version a link names
touched_at(TIMESTAMP, not null)-
the reading of the library that last wrote this row; a row the latest reading did not write is a version the library stopped supporting, and goes
federation_version_definition
One definition a federation version brings into a schema that links it. For example @key under v2.10, a repeatable directive a link importing it names key and one that does not names federation__key, and FieldSet, a scalar.
Primary key: (source_name, version, name). Foreign key: (source_name, version) references federation_version (source_name, version). Check: "KIND" IN('DIRECTIVE', 'SCALAR', 'ENUM'). Check: ("KIND" = 'DIRECTIVE') = ("NAME" LIKE '@%'). Check: ("KIND" = 'DIRECTIVE') = ("UNIMPORTED_NAME" LIKE '@%'). Check: ("KIND" = 'DIRECTIVE') = ("REPEATABLE" IS NOT NULL).
source_name(CHARACTER VARYING, not null)-
the library, on federation_version’s terms
version(CHARACTER VARYING, not null)-
the version, anchored by federation_version
name(CHARACTER VARYING, not null)-
the definition’s name in the specification, spelled as an import list spells it: a directive’s with its at sign, a type’s bare
kind(CHARACTER VARYING, not null)-
DIRECTIVE, SCALAR or ENUM, the kinds the specification defines; a definition of another kind refuses the capture rather than arriving unmodelled
unimported_name(CHARACTER VARYING, not null)-
the name the library gives the definition in a schema whose link does not import it, spelled as name is: the specification’s namespace prefixed, federation__key, or the name itself where the library always imports it, as @link
repeatable(BOOLEAN, nullable)-
whether the directive may be applied more than once at one site; NULL on a type
description(CHARACTER VARYING, nullable)-
the definition’s description as the specification writes it, NULL where it writes none
touched_at(TIMESTAMP, not null)-
the reading of the library that last wrote this row; a row the latest reading did not write is a definition the version stopped bringing in, and goes
federation_version_directive_argument
One argument a federation version’s directive declares. For example fields: FieldSet! of @key under v2.10, its type named by the specification.
Primary key: (source_name, version, name, argument_name). Foreign key: (source_name, version, name) references federation_version_definition (source_name, version, name).
source_name(CHARACTER VARYING, not null)-
the library, on federation_version’s terms
version(CHARACTER VARYING, not null)-
the version
name(CHARACTER VARYING, not null)-
the directive, with its at sign, anchored by federation_version_definition
argument_name(CHARACTER VARYING, not null)-
the argument’s name
ordinal(INTEGER, not null)-
the argument’s position in the definition, from 0
type_sdl(CHARACTER VARYING, not null)-
the argument’s type as the specification writes it, its named type under the specification’s name
named_type(CHARACTER VARYING, not null)-
the type the argument’s wrapping bottoms out in, under the specification’s name, which a schema may see under another
non_null(BOOLEAN, not null)-
whether the outermost type is non-null
is_list(BOOLEAN, not null)-
whether the type, under its outermost non-null, is a list
item_non_null(BOOLEAN, nullable)-
whether the innermost item of a list is non-null; NULL where the type is no list
default_value_sdl(CHARACTER VARYING, nullable)-
the default as the specification writes it, NULL where it declares none
description(CHARACTER VARYING, nullable)-
the argument’s description, NULL where the specification writes none
touched_at(TIMESTAMP, not null)-
the reading of the library that last wrote this row, on federation_version_definition’s terms
federation_version_import
One name a federation version’s link may import. For example @key and FieldSet under v2.10, and @context only from the version that introduced it.
Primary key: (source_name, version, name). Foreign key: (source_name, version, name) references federation_version_definition (source_name, version, name).
source_name(CHARACTER VARYING, not null)-
the library, on federation_version’s terms
version(CHARACTER VARYING, not null)-
the version, anchored by federation_version
name(CHARACTER VARYING, not null)-
the name as a link’s import list spells it, a directive’s with its at sign and a type’s bare, so the list as written joins it by equality. What the library accepts as an import at this version rather than what its definition file holds, the two differing where versions share a file and a directive is younger than the file’s first version
touched_at(TIMESTAMP, not null)-
the reading of the library that last wrote this row; a row the latest reading did not write is a name the version stopped letting a link import, and goes
federation_written_version
The federation version a link graphitron adds names, under the library it is read against. For example v2.10, which a graph federated only through a configured tag links to.
Primary key: (source_name). Foreign key: (source_name, version) references federation_version (source_name, version).
source_name(CHARACTER VARYING, not null)-
the library, on federation_version’s terms; the whole key, graphitron writing one version
version(CHARACTER VARYING, not null)-
the version, as FederationSpec.URL names it after the specification’s prefix