Skip to content

[spec] Implement schema coordinates #6560

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 10, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
107 changes: 107 additions & 0 deletions libraries/apollo-ast/api/apollo-ast.api
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ public final class com/apollographql/apollo/ast/ApolloParser {
public static synthetic fun parseAsGQLDocument$default (Ljava/lang/String;Lcom/apollographql/apollo/ast/ParserOptions;ILjava/lang/Object;)Lcom/apollographql/apollo/ast/GQLResult;
public static synthetic fun parseAsGQLDocument$default (Lokio/BufferedSource;Ljava/lang/String;Lcom/apollographql/apollo/ast/ParserOptions;ILjava/lang/Object;)Lcom/apollographql/apollo/ast/GQLResult;
public static synthetic fun parseAsGQLDocument$default (Lokio/Path;Lcom/apollographql/apollo/ast/ParserOptions;ILjava/lang/Object;)Lcom/apollographql/apollo/ast/GQLResult;
public static final fun parseAsGQLSchemaCoordinate (Ljava/lang/String;Lcom/apollographql/apollo/ast/ParserOptions;)Lcom/apollographql/apollo/ast/GQLResult;
public static synthetic fun parseAsGQLSchemaCoordinate$default (Ljava/lang/String;Lcom/apollographql/apollo/ast/ParserOptions;ILjava/lang/Object;)Lcom/apollographql/apollo/ast/GQLResult;
public static final fun parseAsGQLSelections (Ljava/lang/String;Lcom/apollographql/apollo/ast/ParserOptions;)Lcom/apollographql/apollo/ast/GQLResult;
public static final fun parseAsGQLSelections (Lokio/BufferedSource;Ljava/lang/String;Lcom/apollographql/apollo/ast/ParserOptions;)Lcom/apollographql/apollo/ast/GQLResult;
public static synthetic fun parseAsGQLSelections$default (Ljava/lang/String;Lcom/apollographql/apollo/ast/ParserOptions;ILjava/lang/Object;)Lcom/apollographql/apollo/ast/GQLResult;
Expand Down Expand Up @@ -143,6 +145,19 @@ public final class com/apollographql/apollo/ast/GQLArgument : com/apollographql/
public fun writeInternal (Lcom/apollographql/apollo/ast/SDLWriter;)V
}

public final class com/apollographql/apollo/ast/GQLArgumentCoordinate : com/apollographql/apollo/ast/GQLNode, com/apollographql/apollo/ast/GQLSchemaCoordinate {
public fun <init> (Lcom/apollographql/apollo/ast/SourceLocation;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
public final fun copy (Lcom/apollographql/apollo/ast/SourceLocation;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Lcom/apollographql/apollo/ast/GQLArgumentCoordinate;
public static synthetic fun copy$default (Lcom/apollographql/apollo/ast/GQLArgumentCoordinate;Lcom/apollographql/apollo/ast/SourceLocation;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ILjava/lang/Object;)Lcom/apollographql/apollo/ast/GQLArgumentCoordinate;
public fun copyWithNewChildrenInternal (Lcom/apollographql/apollo/ast/NodeContainer;)Lcom/apollographql/apollo/ast/GQLNode;
public final fun getArgument ()Ljava/lang/String;
public fun getChildren ()Ljava/util/List;
public final fun getField ()Ljava/lang/String;
public fun getSourceLocation ()Lcom/apollographql/apollo/ast/SourceLocation;
public final fun getType ()Ljava/lang/String;
public fun writeInternal (Lcom/apollographql/apollo/ast/SDLWriter;)V
}

public final class com/apollographql/apollo/ast/GQLArguments : com/apollographql/apollo/ast/GQLNode {
public fun <init> (Ljava/util/List;Lcom/apollographql/apollo/ast/SourceLocation;)V
public synthetic fun <init> (Ljava/util/List;Lcom/apollographql/apollo/ast/SourceLocation;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
Expand Down Expand Up @@ -187,6 +202,29 @@ public final class com/apollographql/apollo/ast/GQLDirective : com/apollographql
public fun writeInternal (Lcom/apollographql/apollo/ast/SDLWriter;)V
}

public final class com/apollographql/apollo/ast/GQLDirectiveArgumentCoordinate : com/apollographql/apollo/ast/GQLNode, com/apollographql/apollo/ast/GQLSchemaCoordinate {
public fun <init> (Lcom/apollographql/apollo/ast/SourceLocation;Ljava/lang/String;Ljava/lang/String;)V
public final fun copy (Lcom/apollographql/apollo/ast/SourceLocation;Ljava/lang/String;Ljava/lang/String;)Lcom/apollographql/apollo/ast/GQLDirectiveArgumentCoordinate;
public static synthetic fun copy$default (Lcom/apollographql/apollo/ast/GQLDirectiveArgumentCoordinate;Lcom/apollographql/apollo/ast/SourceLocation;Ljava/lang/String;Ljava/lang/String;ILjava/lang/Object;)Lcom/apollographql/apollo/ast/GQLDirectiveArgumentCoordinate;
public fun copyWithNewChildrenInternal (Lcom/apollographql/apollo/ast/NodeContainer;)Lcom/apollographql/apollo/ast/GQLNode;
public final fun getArgument ()Ljava/lang/String;
public fun getChildren ()Ljava/util/List;
public final fun getName ()Ljava/lang/String;
public fun getSourceLocation ()Lcom/apollographql/apollo/ast/SourceLocation;
public fun writeInternal (Lcom/apollographql/apollo/ast/SDLWriter;)V
}

public final class com/apollographql/apollo/ast/GQLDirectiveCoordinate : com/apollographql/apollo/ast/GQLNode, com/apollographql/apollo/ast/GQLSchemaCoordinate {
public fun <init> (Lcom/apollographql/apollo/ast/SourceLocation;Ljava/lang/String;)V
public final fun copy (Lcom/apollographql/apollo/ast/SourceLocation;Ljava/lang/String;)Lcom/apollographql/apollo/ast/GQLDirectiveCoordinate;
public static synthetic fun copy$default (Lcom/apollographql/apollo/ast/GQLDirectiveCoordinate;Lcom/apollographql/apollo/ast/SourceLocation;Ljava/lang/String;ILjava/lang/Object;)Lcom/apollographql/apollo/ast/GQLDirectiveCoordinate;
public fun copyWithNewChildrenInternal (Lcom/apollographql/apollo/ast/NodeContainer;)Lcom/apollographql/apollo/ast/GQLNode;
public fun getChildren ()Ljava/util/List;
public final fun getName ()Ljava/lang/String;
public fun getSourceLocation ()Lcom/apollographql/apollo/ast/SourceLocation;
public fun writeInternal (Lcom/apollographql/apollo/ast/SDLWriter;)V
}

public final class com/apollographql/apollo/ast/GQLDirectiveDefinition : com/apollographql/apollo/ast/GQLDefinition, com/apollographql/apollo/ast/GQLDescribed, com/apollographql/apollo/ast/GQLNamed {
public static final field Companion Lcom/apollographql/apollo/ast/GQLDirectiveDefinition$Companion;
public fun <init> (Lcom/apollographql/apollo/ast/SourceLocation;Ljava/lang/String;Ljava/lang/String;Ljava/util/List;ZLjava/util/List;)V
Expand Down Expand Up @@ -514,6 +552,18 @@ public final class com/apollographql/apollo/ast/GQLListValue : com/apollographql
public fun writeInternal (Lcom/apollographql/apollo/ast/SDLWriter;)V
}

public final class com/apollographql/apollo/ast/GQLMemberCoordinate : com/apollographql/apollo/ast/GQLNode, com/apollographql/apollo/ast/GQLSchemaCoordinate {
public fun <init> (Lcom/apollographql/apollo/ast/SourceLocation;Ljava/lang/String;Ljava/lang/String;)V
public final fun copy (Lcom/apollographql/apollo/ast/SourceLocation;Ljava/lang/String;Ljava/lang/String;)Lcom/apollographql/apollo/ast/GQLMemberCoordinate;
public static synthetic fun copy$default (Lcom/apollographql/apollo/ast/GQLMemberCoordinate;Lcom/apollographql/apollo/ast/SourceLocation;Ljava/lang/String;Ljava/lang/String;ILjava/lang/Object;)Lcom/apollographql/apollo/ast/GQLMemberCoordinate;
public fun copyWithNewChildrenInternal (Lcom/apollographql/apollo/ast/NodeContainer;)Lcom/apollographql/apollo/ast/GQLNode;
public fun getChildren ()Ljava/util/List;
public final fun getMember ()Ljava/lang/String;
public fun getSourceLocation ()Lcom/apollographql/apollo/ast/SourceLocation;
public final fun getType ()Ljava/lang/String;
public fun writeInternal (Lcom/apollographql/apollo/ast/SDLWriter;)V
}

public abstract interface class com/apollographql/apollo/ast/GQLNamed {
public abstract fun getName ()Ljava/lang/String;
}
Expand Down Expand Up @@ -683,6 +733,9 @@ public final class com/apollographql/apollo/ast/GQLScalarTypeExtension : com/apo
public fun writeInternal (Lcom/apollographql/apollo/ast/SDLWriter;)V
}

public abstract interface class com/apollographql/apollo/ast/GQLSchemaCoordinate {
}

public final class com/apollographql/apollo/ast/GQLSchemaDefinition : com/apollographql/apollo/ast/GQLDefinition, com/apollographql/apollo/ast/GQLDescribed, com/apollographql/apollo/ast/GQLHasDirectives {
public fun <init> (Lcom/apollographql/apollo/ast/SourceLocation;Ljava/lang/String;Ljava/util/List;Ljava/util/List;)V
public synthetic fun <init> (Lcom/apollographql/apollo/ast/SourceLocation;Ljava/lang/String;Ljava/util/List;Ljava/util/List;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
Expand Down Expand Up @@ -740,6 +793,17 @@ public final class com/apollographql/apollo/ast/GQLStringValue : com/apollograph
public abstract class com/apollographql/apollo/ast/GQLType : com/apollographql/apollo/ast/GQLNode {
}

public final class com/apollographql/apollo/ast/GQLTypeCoordinate : com/apollographql/apollo/ast/GQLNode, com/apollographql/apollo/ast/GQLSchemaCoordinate {
public fun <init> (Lcom/apollographql/apollo/ast/SourceLocation;Ljava/lang/String;)V
public final fun copy (Lcom/apollographql/apollo/ast/SourceLocation;Ljava/lang/String;)Lcom/apollographql/apollo/ast/GQLTypeCoordinate;
public static synthetic fun copy$default (Lcom/apollographql/apollo/ast/GQLTypeCoordinate;Lcom/apollographql/apollo/ast/SourceLocation;Ljava/lang/String;ILjava/lang/Object;)Lcom/apollographql/apollo/ast/GQLTypeCoordinate;
public fun copyWithNewChildrenInternal (Lcom/apollographql/apollo/ast/NodeContainer;)Lcom/apollographql/apollo/ast/GQLNode;
public fun getChildren ()Ljava/util/List;
public final fun getName ()Ljava/lang/String;
public fun getSourceLocation ()Lcom/apollographql/apollo/ast/SourceLocation;
public fun writeInternal (Lcom/apollographql/apollo/ast/SDLWriter;)V
}

public abstract class com/apollographql/apollo/ast/GQLTypeDefinition : com/apollographql/apollo/ast/GQLDefinition, com/apollographql/apollo/ast/GQLDescribed, com/apollographql/apollo/ast/GQLHasDirectives, com/apollographql/apollo/ast/GQLNamed {
public static final field Companion Lcom/apollographql/apollo/ast/GQLTypeDefinition$Companion;
public final fun isBuiltIn ()Z
Expand Down Expand Up @@ -818,6 +882,11 @@ public final class com/apollographql/apollo/ast/GqlKt {
public static final fun transform (Lcom/apollographql/apollo/ast/GQLNode;Lcom/apollographql/apollo/ast/NodeTransformer;)Lcom/apollographql/apollo/ast/GQLNode;
}

public final class com/apollographql/apollo/ast/GqlcoordinateKt {
public static final fun resolveSchemaCoordinate (Lcom/apollographql/apollo/ast/Schema;Lcom/apollographql/apollo/ast/GQLSchemaCoordinate;)Lcom/apollographql/apollo/ast/ResolvedSchemaElement;
public static final fun resolveSchemaCoordinate (Lcom/apollographql/apollo/ast/Schema;Ljava/lang/String;)Lcom/apollographql/apollo/ast/ResolvedSchemaElement;
}

public final class com/apollographql/apollo/ast/GqldirectiveKt {
public static final fun findCatch (Lcom/apollographql/apollo/ast/GQLField;Lcom/apollographql/apollo/ast/Schema;)Lcom/apollographql/apollo/ast/Catch;
public static final fun findCatch (Ljava/util/List;Lcom/apollographql/apollo/ast/Schema;)Lcom/apollographql/apollo/ast/Catch;
Expand Down Expand Up @@ -1031,6 +1100,44 @@ public final class com/apollographql/apollo/ast/ReservedEnumValueName : com/apol
public fun getSourceLocation ()Lcom/apollographql/apollo/ast/SourceLocation;
}

public final class com/apollographql/apollo/ast/ResolvedDirective : com/apollographql/apollo/ast/ResolvedSchemaElement {
public fun <init> (Lcom/apollographql/apollo/ast/GQLDirectiveDefinition;)V
public final fun getDirectiveDefinition ()Lcom/apollographql/apollo/ast/GQLDirectiveDefinition;
}

public final class com/apollographql/apollo/ast/ResolvedDirectiveArgument : com/apollographql/apollo/ast/ResolvedSchemaElement {
public fun <init> (Lcom/apollographql/apollo/ast/GQLInputValueDefinition;)V
public final fun getArgument ()Lcom/apollographql/apollo/ast/GQLInputValueDefinition;
}

public final class com/apollographql/apollo/ast/ResolvedEnumValue : com/apollographql/apollo/ast/ResolvedSchemaElement {
public fun <init> (Lcom/apollographql/apollo/ast/GQLEnumValueDefinition;)V
public final fun getEnumValue ()Lcom/apollographql/apollo/ast/GQLEnumValueDefinition;
}

public final class com/apollographql/apollo/ast/ResolvedField : com/apollographql/apollo/ast/ResolvedSchemaElement {
public fun <init> (Lcom/apollographql/apollo/ast/GQLFieldDefinition;)V
public final fun getFieldDefinition ()Lcom/apollographql/apollo/ast/GQLFieldDefinition;
}

public final class com/apollographql/apollo/ast/ResolvedFieldArgument : com/apollographql/apollo/ast/ResolvedSchemaElement {
public fun <init> (Lcom/apollographql/apollo/ast/GQLInputValueDefinition;)V
public final fun getArgument ()Lcom/apollographql/apollo/ast/GQLInputValueDefinition;
}

public final class com/apollographql/apollo/ast/ResolvedInputField : com/apollographql/apollo/ast/ResolvedSchemaElement {
public fun <init> (Lcom/apollographql/apollo/ast/GQLInputValueDefinition;)V
public final fun getInputField ()Lcom/apollographql/apollo/ast/GQLInputValueDefinition;
}

public abstract interface class com/apollographql/apollo/ast/ResolvedSchemaElement {
}

public final class com/apollographql/apollo/ast/ResolvedType : com/apollographql/apollo/ast/ResolvedSchemaElement {
public fun <init> (Lcom/apollographql/apollo/ast/GQLTypeDefinition;)V
public final fun getTypeDefinition ()Lcom/apollographql/apollo/ast/GQLTypeDefinition;
}

public class com/apollographql/apollo/ast/SDLWriter : java/io/Closeable {
public fun <init> (Lokio/BufferedSink;Ljava/lang/String;)V
public fun close ()V
Expand Down
Loading
Loading