├── .gitattributes ├── .github ├── FUNDING.yml └── workflows │ └── ci.yml ├── .gitignore ├── CHANGELOG-ELM-PACKAGE.md ├── CHANGELOG-NPM-PACKAGE.md ├── FAQ.md ├── LICENSE ├── README.md ├── assets ├── github-optional-arg-error.png ├── scalar-codecs-tutorial.png └── types-without-borders.png ├── bin ├── approve └── elm-graphql ├── docs ├── Subscriptions-FAQ.md ├── elm-19-upgrade.md ├── fixing-other-errors.md ├── introspection-query.gql ├── reproducing-codegen-issues.md └── resolving-elm-dependencies.md ├── elm-analyse.json ├── elm-tooling.json ├── elm.json ├── ete_tests ├── edge-cases.gql ├── elm.json ├── index.html ├── no-format-example │ └── GithubNoFormat │ │ ├── Enum │ │ ├── CollaboratorAffiliation.elm │ │ ├── CommentAuthorAssociation.elm │ │ ├── CommentCannotUpdateReason.elm │ │ ├── DefaultRepositoryPermissionField.elm │ │ ├── DeploymentState.elm │ │ ├── DeploymentStatusState.elm │ │ ├── GistOrderField.elm │ │ ├── GistPrivacy.elm │ │ ├── GitSignatureState.elm │ │ ├── IssueOrderField.elm │ │ ├── IssuePubSubTopic.elm │ │ ├── IssueState.elm │ │ ├── LanguageOrderField.elm │ │ ├── LockReason.elm │ │ ├── MergeableState.elm │ │ ├── MilestoneOrderField.elm │ │ ├── MilestoneState.elm │ │ ├── OrderDirection.elm │ │ ├── OrganizationInvitationRole.elm │ │ ├── OrganizationInvitationType.elm │ │ ├── ProjectCardState.elm │ │ ├── ProjectOrderField.elm │ │ ├── ProjectState.elm │ │ ├── PullRequestPubSubTopic.elm │ │ ├── PullRequestReviewEvent.elm │ │ ├── PullRequestReviewState.elm │ │ ├── PullRequestState.elm │ │ ├── ReactionContent.elm │ │ ├── ReactionOrderField.elm │ │ ├── RefOrderField.elm │ │ ├── ReleaseOrderField.elm │ │ ├── RepositoryAffiliation.elm │ │ ├── RepositoryCollaboratorAffiliation.elm │ │ ├── RepositoryContributionType.elm │ │ ├── RepositoryLockReason.elm │ │ ├── RepositoryOrderField.elm │ │ ├── RepositoryPermission.elm │ │ ├── RepositoryPrivacy.elm │ │ ├── SearchType.elm │ │ ├── StarOrderField.elm │ │ ├── StatusState.elm │ │ ├── SubscriptionState.elm │ │ ├── TeamMemberRole.elm │ │ ├── TeamMembershipType.elm │ │ ├── TeamOrderField.elm │ │ ├── TeamPrivacy.elm │ │ ├── TeamRepositoryOrderField.elm │ │ ├── TeamRole.elm │ │ └── TopicSuggestionDeclineReason.elm │ │ ├── InputObject.elm │ │ ├── Interface.elm │ │ ├── Interface │ │ ├── Actor.elm │ │ ├── Assignable.elm │ │ ├── Closable.elm │ │ ├── Comment.elm │ │ ├── Deletable.elm │ │ ├── GitObject.elm │ │ ├── GitSignature.elm │ │ ├── Labelable.elm │ │ ├── Lockable.elm │ │ ├── Node.elm │ │ ├── ProjectOwner.elm │ │ ├── Reactable.elm │ │ ├── RepositoryInfo.elm │ │ ├── RepositoryNode.elm │ │ ├── RepositoryOwner.elm │ │ ├── Starrable.elm │ │ ├── Subscribable.elm │ │ ├── UniformResourceLocatable.elm │ │ ├── Updatable.elm │ │ └── UpdatableComment.elm │ │ ├── Mutation.elm │ │ ├── Object.elm │ │ ├── Object │ │ ├── AcceptTopicSuggestionPayload.elm │ │ ├── AddCommentPayload.elm │ │ ├── AddProjectCardPayload.elm │ │ ├── AddProjectColumnPayload.elm │ │ ├── AddPullRequestReviewCommentPayload.elm │ │ ├── AddPullRequestReviewPayload.elm │ │ ├── AddReactionPayload.elm │ │ ├── AddStarPayload.elm │ │ ├── AddedToProjectEvent.elm │ │ ├── AssignedEvent.elm │ │ ├── BaseRefChangedEvent.elm │ │ ├── BaseRefForcePushedEvent.elm │ │ ├── Blame.elm │ │ ├── BlameRange.elm │ │ ├── Blob.elm │ │ ├── Bot.elm │ │ ├── ClosedEvent.elm │ │ ├── CodeOfConduct.elm │ │ ├── CommentDeletedEvent.elm │ │ ├── Commit.elm │ │ ├── CommitComment.elm │ │ ├── CommitCommentConnection.elm │ │ ├── CommitCommentEdge.elm │ │ ├── CommitCommentThread.elm │ │ ├── CommitConnection.elm │ │ ├── CommitEdge.elm │ │ ├── CommitHistoryConnection.elm │ │ ├── ConvertedNoteToIssueEvent.elm │ │ ├── CreateProjectPayload.elm │ │ ├── CrossReferencedEvent.elm │ │ ├── DeclineTopicSuggestionPayload.elm │ │ ├── DeleteProjectCardPayload.elm │ │ ├── DeleteProjectColumnPayload.elm │ │ ├── DeleteProjectPayload.elm │ │ ├── DeletePullRequestReviewPayload.elm │ │ ├── DemilestonedEvent.elm │ │ ├── DeployKey.elm │ │ ├── DeployKeyConnection.elm │ │ ├── DeployKeyEdge.elm │ │ ├── DeployedEvent.elm │ │ ├── Deployment.elm │ │ ├── DeploymentConnection.elm │ │ ├── DeploymentEdge.elm │ │ ├── DeploymentStatus.elm │ │ ├── DeploymentStatusConnection.elm │ │ ├── DeploymentStatusEdge.elm │ │ ├── DismissPullRequestReviewPayload.elm │ │ ├── ExternalIdentity.elm │ │ ├── ExternalIdentityConnection.elm │ │ ├── ExternalIdentityEdge.elm │ │ ├── ExternalIdentitySamlAttributes.elm │ │ ├── ExternalIdentityScimAttributes.elm │ │ ├── FollowerConnection.elm │ │ ├── FollowingConnection.elm │ │ ├── Gist.elm │ │ ├── GistComment.elm │ │ ├── GistCommentConnection.elm │ │ ├── GistCommentEdge.elm │ │ ├── GistConnection.elm │ │ ├── GistEdge.elm │ │ ├── GitActor.elm │ │ ├── GitHubMetadata.elm │ │ ├── GpgSignature.elm │ │ ├── HeadRefDeletedEvent.elm │ │ ├── HeadRefForcePushedEvent.elm │ │ ├── HeadRefRestoredEvent.elm │ │ ├── Issue.elm │ │ ├── IssueComment.elm │ │ ├── IssueCommentConnection.elm │ │ ├── IssueCommentEdge.elm │ │ ├── IssueConnection.elm │ │ ├── IssueEdge.elm │ │ ├── IssueTimelineConnection.elm │ │ ├── IssueTimelineItemEdge.elm │ │ ├── Label.elm │ │ ├── LabelConnection.elm │ │ ├── LabelEdge.elm │ │ ├── LabeledEvent.elm │ │ ├── Language.elm │ │ ├── LanguageConnection.elm │ │ ├── LanguageEdge.elm │ │ ├── License.elm │ │ ├── LicenseRule.elm │ │ ├── LockLockablePayload.elm │ │ ├── LockedEvent.elm │ │ ├── MarketplaceCategory.elm │ │ ├── MarketplaceListing.elm │ │ ├── MarketplaceListingConnection.elm │ │ ├── MarketplaceListingEdge.elm │ │ ├── MentionedEvent.elm │ │ ├── MergedEvent.elm │ │ ├── Milestone.elm │ │ ├── MilestoneConnection.elm │ │ ├── MilestoneEdge.elm │ │ ├── MilestonedEvent.elm │ │ ├── MoveProjectCardPayload.elm │ │ ├── MoveProjectColumnPayload.elm │ │ ├── MovedColumnsInProjectEvent.elm │ │ ├── Organization.elm │ │ ├── OrganizationConnection.elm │ │ ├── OrganizationEdge.elm │ │ ├── OrganizationIdentityProvider.elm │ │ ├── OrganizationInvitation.elm │ │ ├── OrganizationInvitationConnection.elm │ │ ├── OrganizationInvitationEdge.elm │ │ ├── PageInfo.elm │ │ ├── Project.elm │ │ ├── ProjectCard.elm │ │ ├── ProjectCardConnection.elm │ │ ├── ProjectCardEdge.elm │ │ ├── ProjectColumn.elm │ │ ├── ProjectColumnConnection.elm │ │ ├── ProjectColumnEdge.elm │ │ ├── ProjectConnection.elm │ │ ├── ProjectEdge.elm │ │ ├── ProtectedBranch.elm │ │ ├── ProtectedBranchConnection.elm │ │ ├── ProtectedBranchEdge.elm │ │ ├── PublicKey.elm │ │ ├── PublicKeyConnection.elm │ │ ├── PublicKeyEdge.elm │ │ ├── PullRequest.elm │ │ ├── PullRequestCommit.elm │ │ ├── PullRequestCommitConnection.elm │ │ ├── PullRequestCommitEdge.elm │ │ ├── PullRequestConnection.elm │ │ ├── PullRequestEdge.elm │ │ ├── PullRequestReview.elm │ │ ├── PullRequestReviewComment.elm │ │ ├── PullRequestReviewCommentConnection.elm │ │ ├── PullRequestReviewCommentEdge.elm │ │ ├── PullRequestReviewConnection.elm │ │ ├── PullRequestReviewEdge.elm │ │ ├── PullRequestReviewThread.elm │ │ ├── PullRequestTimelineConnection.elm │ │ ├── PullRequestTimelineItemEdge.elm │ │ ├── PushAllowance.elm │ │ ├── PushAllowanceConnection.elm │ │ ├── PushAllowanceEdge.elm │ │ ├── RateLimit.elm │ │ ├── ReactingUserConnection.elm │ │ ├── ReactingUserEdge.elm │ │ ├── Reaction.elm │ │ ├── ReactionConnection.elm │ │ ├── ReactionEdge.elm │ │ ├── ReactionGroup.elm │ │ ├── Ref.elm │ │ ├── RefConnection.elm │ │ ├── RefEdge.elm │ │ ├── ReferencedEvent.elm │ │ ├── Release.elm │ │ ├── ReleaseAsset.elm │ │ ├── ReleaseAssetConnection.elm │ │ ├── ReleaseAssetEdge.elm │ │ ├── ReleaseConnection.elm │ │ ├── ReleaseEdge.elm │ │ ├── RemoveOutsideCollaboratorPayload.elm │ │ ├── RemoveReactionPayload.elm │ │ ├── RemoveStarPayload.elm │ │ ├── RemovedFromProjectEvent.elm │ │ ├── RenamedTitleEvent.elm │ │ ├── ReopenedEvent.elm │ │ ├── Repository.elm │ │ ├── RepositoryCollaboratorConnection.elm │ │ ├── RepositoryCollaboratorEdge.elm │ │ ├── RepositoryConnection.elm │ │ ├── RepositoryEdge.elm │ │ ├── RepositoryInvitation.elm │ │ ├── RepositoryInvitationRepository.elm │ │ ├── RepositoryTopic.elm │ │ ├── RepositoryTopicConnection.elm │ │ ├── RepositoryTopicEdge.elm │ │ ├── RequestReviewsPayload.elm │ │ ├── ReviewDismissalAllowance.elm │ │ ├── ReviewDismissalAllowanceConnection.elm │ │ ├── ReviewDismissalAllowanceEdge.elm │ │ ├── ReviewDismissedEvent.elm │ │ ├── ReviewRequest.elm │ │ ├── ReviewRequestConnection.elm │ │ ├── ReviewRequestEdge.elm │ │ ├── ReviewRequestRemovedEvent.elm │ │ ├── ReviewRequestedEvent.elm │ │ ├── SearchResultItemConnection.elm │ │ ├── SearchResultItemEdge.elm │ │ ├── SmimeSignature.elm │ │ ├── StargazerConnection.elm │ │ ├── StargazerEdge.elm │ │ ├── StarredRepositoryConnection.elm │ │ ├── StarredRepositoryEdge.elm │ │ ├── Status.elm │ │ ├── StatusContext.elm │ │ ├── SubmitPullRequestReviewPayload.elm │ │ ├── SubscribedEvent.elm │ │ ├── SuggestedReviewer.elm │ │ ├── Tag.elm │ │ ├── Team.elm │ │ ├── TeamConnection.elm │ │ ├── TeamEdge.elm │ │ ├── TeamMemberConnection.elm │ │ ├── TeamMemberEdge.elm │ │ ├── TeamRepositoryConnection.elm │ │ ├── TeamRepositoryEdge.elm │ │ ├── TextMatch.elm │ │ ├── TextMatchHighlight.elm │ │ ├── Topic.elm │ │ ├── TopicConnection.elm │ │ ├── TopicEdge.elm │ │ ├── Tree.elm │ │ ├── TreeEntry.elm │ │ ├── UnassignedEvent.elm │ │ ├── UnknownSignature.elm │ │ ├── UnlabeledEvent.elm │ │ ├── UnlockedEvent.elm │ │ ├── UnsubscribedEvent.elm │ │ ├── UpdateProjectCardPayload.elm │ │ ├── UpdateProjectColumnPayload.elm │ │ ├── UpdateProjectPayload.elm │ │ ├── UpdatePullRequestReviewCommentPayload.elm │ │ ├── UpdatePullRequestReviewPayload.elm │ │ ├── UpdateSubscriptionPayload.elm │ │ ├── UpdateTopicsPayload.elm │ │ ├── User.elm │ │ ├── UserConnection.elm │ │ ├── UserContentEdit.elm │ │ ├── UserContentEditConnection.elm │ │ ├── UserContentEditEdge.elm │ │ └── UserEdge.elm │ │ ├── Query.elm │ │ ├── Scalar.elm │ │ ├── ScalarCodecs.elm │ │ ├── Union.elm │ │ ├── Union │ │ ├── Closer.elm │ │ ├── CollectionItemContent.elm │ │ ├── IssueOrPullRequest.elm │ │ ├── IssueTimelineItem.elm │ │ ├── MilestoneItem.elm │ │ ├── ProjectCardItem.elm │ │ ├── PullRequestTimelineItem.elm │ │ ├── PushAllowanceActor.elm │ │ ├── ReferencedSubject.elm │ │ ├── RenamedTitleSubject.elm │ │ ├── RequestedReviewer.elm │ │ ├── ReviewDismissalAllowanceActor.elm │ │ └── SearchResultItem.elm │ │ └── VerifyScalarCodecs.elm └── src │ ├── ConflictingSelections.elm │ ├── EdgeCases │ ├── InputObject.elm │ ├── Interface.elm │ ├── Interface │ │ ├── Character.elm │ │ └── Species.elm │ ├── Mutation.elm │ ├── Object.elm │ ├── Object │ │ └── Human.elm │ ├── Query.elm │ ├── Scalar.elm │ ├── ScalarCodecs.elm │ ├── Union.elm │ └── VerifyScalarCodecs.elm │ ├── Normalize │ ├── Enum │ │ ├── Episode_.elm │ │ └── Language.elm │ ├── InputObject.elm │ ├── Interface.elm │ ├── Interface │ │ └── Character.elm │ ├── Object.elm │ ├── Object │ │ ├── Cat.elm │ │ ├── Dog.elm │ │ ├── Droid.elm │ │ ├── Human_.elm │ │ ├── ListId.elm │ │ └── MaybeId.elm │ ├── Query.elm │ ├── Scalar.elm │ ├── ScalarCodecs.elm │ ├── Union.elm │ ├── Union │ │ ├── CharacterUnion.elm │ │ └── ConflictingTypesUnion.elm │ └── VerifyScalarCodecs.elm │ └── NormalizeDemo.elm ├── examples ├── .gitignore ├── complex │ ├── ElmPackage.elm │ ├── ElmReposRequest.elm │ ├── Main.elm │ ├── RepoWithOwner.elm │ ├── View │ │ └── Result.elm │ ├── elm.json │ ├── package-lock.json │ └── package.json ├── elm-analyse.json ├── elm.json ├── github-schema.json ├── package-lock.json ├── package.json ├── src │ ├── CustomScalarCodecs.elm │ ├── ErrorHandling.elm │ ├── Example00SingleFieldQuery.elm │ ├── Example01BasicQuery.elm │ ├── Example02PipelineSyntax.elm │ ├── Example03Variables.elm │ ├── Example04ErrorDestructuring.elm │ ├── Example05InterfacesAndUnions.elm │ ├── Example06Typename.elm │ ├── Example07CustomCodecs.elm │ ├── Example08Foldr.elm │ ├── Example09BasicMutation.elm │ ├── ExampleFromReadme.elm │ ├── Github.elm │ ├── Github │ │ ├── Enum │ │ │ ├── CollaboratorAffiliation.elm │ │ │ ├── CommentAuthorAssociation.elm │ │ │ ├── CommentCannotUpdateReason.elm │ │ │ ├── DefaultRepositoryPermissionField.elm │ │ │ ├── DeploymentState.elm │ │ │ ├── DeploymentStatusState.elm │ │ │ ├── GistOrderField.elm │ │ │ ├── GistPrivacy.elm │ │ │ ├── GitSignatureState.elm │ │ │ ├── IssueOrderField.elm │ │ │ ├── IssuePubSubTopic.elm │ │ │ ├── IssueState.elm │ │ │ ├── LanguageOrderField.elm │ │ │ ├── LockReason.elm │ │ │ ├── MergeableState.elm │ │ │ ├── MilestoneOrderField.elm │ │ │ ├── MilestoneState.elm │ │ │ ├── OrderDirection.elm │ │ │ ├── OrganizationInvitationRole.elm │ │ │ ├── OrganizationInvitationType.elm │ │ │ ├── ProjectCardState.elm │ │ │ ├── ProjectOrderField.elm │ │ │ ├── ProjectState.elm │ │ │ ├── PullRequestPubSubTopic.elm │ │ │ ├── PullRequestReviewEvent.elm │ │ │ ├── PullRequestReviewState.elm │ │ │ ├── PullRequestState.elm │ │ │ ├── ReactionContent.elm │ │ │ ├── ReactionOrderField.elm │ │ │ ├── RefOrderField.elm │ │ │ ├── ReleaseOrderField.elm │ │ │ ├── RepositoryAffiliation.elm │ │ │ ├── RepositoryCollaboratorAffiliation.elm │ │ │ ├── RepositoryContributionType.elm │ │ │ ├── RepositoryLockReason.elm │ │ │ ├── RepositoryOrderField.elm │ │ │ ├── RepositoryPermission.elm │ │ │ ├── RepositoryPrivacy.elm │ │ │ ├── SearchType.elm │ │ │ ├── StarOrderField.elm │ │ │ ├── StatusState.elm │ │ │ ├── SubscriptionState.elm │ │ │ ├── TeamMemberRole.elm │ │ │ ├── TeamMembershipType.elm │ │ │ ├── TeamOrderField.elm │ │ │ ├── TeamPrivacy.elm │ │ │ ├── TeamRepositoryOrderField.elm │ │ │ ├── TeamRole.elm │ │ │ └── TopicSuggestionDeclineReason.elm │ │ ├── InputObject.elm │ │ ├── Interface.elm │ │ ├── Interface │ │ │ ├── Actor.elm │ │ │ ├── Assignable.elm │ │ │ ├── Closable.elm │ │ │ ├── Comment.elm │ │ │ ├── Deletable.elm │ │ │ ├── GitObject.elm │ │ │ ├── GitSignature.elm │ │ │ ├── Labelable.elm │ │ │ ├── Lockable.elm │ │ │ ├── Node.elm │ │ │ ├── ProjectOwner.elm │ │ │ ├── Reactable.elm │ │ │ ├── RepositoryInfo.elm │ │ │ ├── RepositoryNode.elm │ │ │ ├── RepositoryOwner.elm │ │ │ ├── Starrable.elm │ │ │ ├── Subscribable.elm │ │ │ ├── UniformResourceLocatable.elm │ │ │ ├── Updatable.elm │ │ │ └── UpdatableComment.elm │ │ ├── Mutation.elm │ │ ├── Object.elm │ │ ├── Object │ │ │ ├── AcceptTopicSuggestionPayload.elm │ │ │ ├── AddCommentPayload.elm │ │ │ ├── AddProjectCardPayload.elm │ │ │ ├── AddProjectColumnPayload.elm │ │ │ ├── AddPullRequestReviewCommentPayload.elm │ │ │ ├── AddPullRequestReviewPayload.elm │ │ │ ├── AddReactionPayload.elm │ │ │ ├── AddStarPayload.elm │ │ │ ├── AddedToProjectEvent.elm │ │ │ ├── AssignedEvent.elm │ │ │ ├── BaseRefChangedEvent.elm │ │ │ ├── BaseRefForcePushedEvent.elm │ │ │ ├── Blame.elm │ │ │ ├── BlameRange.elm │ │ │ ├── Blob.elm │ │ │ ├── Bot.elm │ │ │ ├── ClosedEvent.elm │ │ │ ├── CodeOfConduct.elm │ │ │ ├── CommentDeletedEvent.elm │ │ │ ├── Commit.elm │ │ │ ├── CommitComment.elm │ │ │ ├── CommitCommentConnection.elm │ │ │ ├── CommitCommentEdge.elm │ │ │ ├── CommitCommentThread.elm │ │ │ ├── CommitConnection.elm │ │ │ ├── CommitEdge.elm │ │ │ ├── CommitHistoryConnection.elm │ │ │ ├── ConvertedNoteToIssueEvent.elm │ │ │ ├── CreateProjectPayload.elm │ │ │ ├── CrossReferencedEvent.elm │ │ │ ├── DeclineTopicSuggestionPayload.elm │ │ │ ├── DeleteProjectCardPayload.elm │ │ │ ├── DeleteProjectColumnPayload.elm │ │ │ ├── DeleteProjectPayload.elm │ │ │ ├── DeletePullRequestReviewPayload.elm │ │ │ ├── DemilestonedEvent.elm │ │ │ ├── DeployKey.elm │ │ │ ├── DeployKeyConnection.elm │ │ │ ├── DeployKeyEdge.elm │ │ │ ├── DeployedEvent.elm │ │ │ ├── Deployment.elm │ │ │ ├── DeploymentConnection.elm │ │ │ ├── DeploymentEdge.elm │ │ │ ├── DeploymentStatus.elm │ │ │ ├── DeploymentStatusConnection.elm │ │ │ ├── DeploymentStatusEdge.elm │ │ │ ├── DismissPullRequestReviewPayload.elm │ │ │ ├── ExternalIdentity.elm │ │ │ ├── ExternalIdentityConnection.elm │ │ │ ├── ExternalIdentityEdge.elm │ │ │ ├── ExternalIdentitySamlAttributes.elm │ │ │ ├── ExternalIdentityScimAttributes.elm │ │ │ ├── FollowerConnection.elm │ │ │ ├── FollowingConnection.elm │ │ │ ├── Gist.elm │ │ │ ├── GistComment.elm │ │ │ ├── GistCommentConnection.elm │ │ │ ├── GistCommentEdge.elm │ │ │ ├── GistConnection.elm │ │ │ ├── GistEdge.elm │ │ │ ├── GitActor.elm │ │ │ ├── GitHubMetadata.elm │ │ │ ├── GpgSignature.elm │ │ │ ├── HeadRefDeletedEvent.elm │ │ │ ├── HeadRefForcePushedEvent.elm │ │ │ ├── HeadRefRestoredEvent.elm │ │ │ ├── Issue.elm │ │ │ ├── IssueComment.elm │ │ │ ├── IssueCommentConnection.elm │ │ │ ├── IssueCommentEdge.elm │ │ │ ├── IssueConnection.elm │ │ │ ├── IssueEdge.elm │ │ │ ├── IssueTimelineConnection.elm │ │ │ ├── IssueTimelineItemEdge.elm │ │ │ ├── Label.elm │ │ │ ├── LabelConnection.elm │ │ │ ├── LabelEdge.elm │ │ │ ├── LabeledEvent.elm │ │ │ ├── Language.elm │ │ │ ├── LanguageConnection.elm │ │ │ ├── LanguageEdge.elm │ │ │ ├── License.elm │ │ │ ├── LicenseRule.elm │ │ │ ├── LockLockablePayload.elm │ │ │ ├── LockedEvent.elm │ │ │ ├── MarketplaceCategory.elm │ │ │ ├── MarketplaceListing.elm │ │ │ ├── MarketplaceListingConnection.elm │ │ │ ├── MarketplaceListingEdge.elm │ │ │ ├── MentionedEvent.elm │ │ │ ├── MergedEvent.elm │ │ │ ├── Milestone.elm │ │ │ ├── MilestoneConnection.elm │ │ │ ├── MilestoneEdge.elm │ │ │ ├── MilestonedEvent.elm │ │ │ ├── MoveProjectCardPayload.elm │ │ │ ├── MoveProjectColumnPayload.elm │ │ │ ├── MovedColumnsInProjectEvent.elm │ │ │ ├── Organization.elm │ │ │ ├── OrganizationConnection.elm │ │ │ ├── OrganizationEdge.elm │ │ │ ├── OrganizationIdentityProvider.elm │ │ │ ├── OrganizationInvitation.elm │ │ │ ├── OrganizationInvitationConnection.elm │ │ │ ├── OrganizationInvitationEdge.elm │ │ │ ├── PageInfo.elm │ │ │ ├── Project.elm │ │ │ ├── ProjectCard.elm │ │ │ ├── ProjectCardConnection.elm │ │ │ ├── ProjectCardEdge.elm │ │ │ ├── ProjectColumn.elm │ │ │ ├── ProjectColumnConnection.elm │ │ │ ├── ProjectColumnEdge.elm │ │ │ ├── ProjectConnection.elm │ │ │ ├── ProjectEdge.elm │ │ │ ├── ProtectedBranch.elm │ │ │ ├── ProtectedBranchConnection.elm │ │ │ ├── ProtectedBranchEdge.elm │ │ │ ├── PublicKey.elm │ │ │ ├── PublicKeyConnection.elm │ │ │ ├── PublicKeyEdge.elm │ │ │ ├── PullRequest.elm │ │ │ ├── PullRequestCommit.elm │ │ │ ├── PullRequestCommitConnection.elm │ │ │ ├── PullRequestCommitEdge.elm │ │ │ ├── PullRequestConnection.elm │ │ │ ├── PullRequestEdge.elm │ │ │ ├── PullRequestReview.elm │ │ │ ├── PullRequestReviewComment.elm │ │ │ ├── PullRequestReviewCommentConnection.elm │ │ │ ├── PullRequestReviewCommentEdge.elm │ │ │ ├── PullRequestReviewConnection.elm │ │ │ ├── PullRequestReviewEdge.elm │ │ │ ├── PullRequestReviewThread.elm │ │ │ ├── PullRequestTimelineConnection.elm │ │ │ ├── PullRequestTimelineItemEdge.elm │ │ │ ├── PushAllowance.elm │ │ │ ├── PushAllowanceConnection.elm │ │ │ ├── PushAllowanceEdge.elm │ │ │ ├── RateLimit.elm │ │ │ ├── ReactingUserConnection.elm │ │ │ ├── ReactingUserEdge.elm │ │ │ ├── Reaction.elm │ │ │ ├── ReactionConnection.elm │ │ │ ├── ReactionEdge.elm │ │ │ ├── ReactionGroup.elm │ │ │ ├── Ref.elm │ │ │ ├── RefConnection.elm │ │ │ ├── RefEdge.elm │ │ │ ├── ReferencedEvent.elm │ │ │ ├── Release.elm │ │ │ ├── ReleaseAsset.elm │ │ │ ├── ReleaseAssetConnection.elm │ │ │ ├── ReleaseAssetEdge.elm │ │ │ ├── ReleaseConnection.elm │ │ │ ├── ReleaseEdge.elm │ │ │ ├── RemoveOutsideCollaboratorPayload.elm │ │ │ ├── RemoveReactionPayload.elm │ │ │ ├── RemoveStarPayload.elm │ │ │ ├── RemovedFromProjectEvent.elm │ │ │ ├── RenamedTitleEvent.elm │ │ │ ├── ReopenedEvent.elm │ │ │ ├── Repository.elm │ │ │ ├── RepositoryCollaboratorConnection.elm │ │ │ ├── RepositoryCollaboratorEdge.elm │ │ │ ├── RepositoryConnection.elm │ │ │ ├── RepositoryEdge.elm │ │ │ ├── RepositoryInvitation.elm │ │ │ ├── RepositoryInvitationRepository.elm │ │ │ ├── RepositoryTopic.elm │ │ │ ├── RepositoryTopicConnection.elm │ │ │ ├── RepositoryTopicEdge.elm │ │ │ ├── RequestReviewsPayload.elm │ │ │ ├── ReviewDismissalAllowance.elm │ │ │ ├── ReviewDismissalAllowanceConnection.elm │ │ │ ├── ReviewDismissalAllowanceEdge.elm │ │ │ ├── ReviewDismissedEvent.elm │ │ │ ├── ReviewRequest.elm │ │ │ ├── ReviewRequestConnection.elm │ │ │ ├── ReviewRequestEdge.elm │ │ │ ├── ReviewRequestRemovedEvent.elm │ │ │ ├── ReviewRequestedEvent.elm │ │ │ ├── SearchResultItemConnection.elm │ │ │ ├── SearchResultItemEdge.elm │ │ │ ├── SmimeSignature.elm │ │ │ ├── StargazerConnection.elm │ │ │ ├── StargazerEdge.elm │ │ │ ├── StarredRepositoryConnection.elm │ │ │ ├── StarredRepositoryEdge.elm │ │ │ ├── Status.elm │ │ │ ├── StatusContext.elm │ │ │ ├── SubmitPullRequestReviewPayload.elm │ │ │ ├── SubscribedEvent.elm │ │ │ ├── SuggestedReviewer.elm │ │ │ ├── Tag.elm │ │ │ ├── Team.elm │ │ │ ├── TeamConnection.elm │ │ │ ├── TeamEdge.elm │ │ │ ├── TeamMemberConnection.elm │ │ │ ├── TeamMemberEdge.elm │ │ │ ├── TeamRepositoryConnection.elm │ │ │ ├── TeamRepositoryEdge.elm │ │ │ ├── TextMatch.elm │ │ │ ├── TextMatchHighlight.elm │ │ │ ├── Topic.elm │ │ │ ├── TopicConnection.elm │ │ │ ├── TopicEdge.elm │ │ │ ├── Tree.elm │ │ │ ├── TreeEntry.elm │ │ │ ├── UnassignedEvent.elm │ │ │ ├── UnknownSignature.elm │ │ │ ├── UnlabeledEvent.elm │ │ │ ├── UnlockedEvent.elm │ │ │ ├── UnsubscribedEvent.elm │ │ │ ├── UpdateProjectCardPayload.elm │ │ │ ├── UpdateProjectColumnPayload.elm │ │ │ ├── UpdateProjectPayload.elm │ │ │ ├── UpdatePullRequestReviewCommentPayload.elm │ │ │ ├── UpdatePullRequestReviewPayload.elm │ │ │ ├── UpdateSubscriptionPayload.elm │ │ │ ├── UpdateTopicsPayload.elm │ │ │ ├── User.elm │ │ │ ├── UserConnection.elm │ │ │ ├── UserContentEdit.elm │ │ │ ├── UserContentEditConnection.elm │ │ │ ├── UserContentEditEdge.elm │ │ │ └── UserEdge.elm │ │ ├── Query.elm │ │ ├── Scalar.elm │ │ ├── ScalarCodecs.elm │ │ ├── Union.elm │ │ ├── Union │ │ │ ├── Closer.elm │ │ │ ├── CollectionItemContent.elm │ │ │ ├── IssueOrPullRequest.elm │ │ │ ├── IssueTimelineItem.elm │ │ │ ├── MilestoneItem.elm │ │ │ ├── ProjectCardItem.elm │ │ │ ├── PullRequestTimelineItem.elm │ │ │ ├── PushAllowanceActor.elm │ │ │ ├── ReferencedSubject.elm │ │ │ ├── RenamedTitleSubject.elm │ │ │ ├── RequestedReviewer.elm │ │ │ ├── ReviewDismissalAllowanceActor.elm │ │ │ └── SearchResultItem.elm │ │ └── VerifyScalarCodecs.elm │ ├── GithubPagination.elm │ ├── Helpers │ │ └── Main.elm │ ├── MobsterQuery.elm │ ├── PrintAny.elm │ ├── SimpleMutation.elm │ ├── Starwars.elm │ └── Swapi │ │ ├── Enum │ │ ├── Episode.elm │ │ ├── Language.elm │ │ └── Phrase.elm │ │ ├── InputObject.elm │ │ ├── Interface.elm │ │ ├── Interface │ │ └── Character.elm │ │ ├── Mutation.elm │ │ ├── Object.elm │ │ ├── Object │ │ ├── ChatMessage.elm │ │ ├── Droid.elm │ │ └── Human.elm │ │ ├── Query.elm │ │ ├── Scalar.elm │ │ ├── ScalarCodecs.elm │ │ ├── Subscription.elm │ │ ├── Union.elm │ │ ├── Union │ │ └── CharacterUnion.elm │ │ └── VerifyScalarCodecs.elm └── subscription │ ├── .gitignore │ ├── Main.elm │ ├── elm.json │ ├── index.html │ ├── index.js │ ├── package-lock.json │ ├── package.json │ └── webpack.config.js ├── generator ├── custom-backend-task.ts ├── elm.json ├── review │ ├── elm.json │ └── src │ │ └── ReviewConfig.elm ├── src │ ├── GenerateSyntax.elm │ ├── Graphql │ │ ├── Generator │ │ │ ├── AnnotatedArg.elm │ │ │ ├── Context.elm │ │ │ ├── Decoder.elm │ │ │ ├── DocComment.elm │ │ │ ├── Enum.elm │ │ │ ├── Field.elm │ │ │ ├── Group.elm │ │ │ ├── Imports.elm │ │ │ ├── InputObjectFile.elm │ │ │ ├── InputObjectFile │ │ │ │ ├── Constructor.elm │ │ │ │ └── Details.elm │ │ │ ├── InputObjectLoops.elm │ │ │ ├── Interface.elm │ │ │ ├── Let.elm │ │ │ ├── ModuleName.elm │ │ │ ├── Mutation.elm │ │ │ ├── Normalize.elm │ │ │ ├── Object.elm │ │ │ ├── OptionalArgs.elm │ │ │ ├── Query.elm │ │ │ ├── ReferenceLeaf.elm │ │ │ ├── RequiredArgs.elm │ │ │ ├── Scalar.elm │ │ │ ├── ScalarCodecs.elm │ │ │ ├── ScopeDefinitions.elm │ │ │ ├── StaticImports.elm │ │ │ ├── Subscription.elm │ │ │ ├── Union.elm │ │ │ └── VerifyScalarCodecs.elm │ │ ├── Parser.elm │ │ └── Parser │ │ │ ├── CamelCaseName.elm │ │ │ ├── ClassCaseName.elm │ │ │ ├── Scalar.elm │ │ │ ├── Type.elm │ │ │ └── TypeKind.elm │ ├── Main.elm │ ├── ModuleName.elm │ ├── MyDebug.elm │ ├── build.js │ ├── cli │ │ ├── generated-code-handler.ts │ │ └── path-helpers.ts │ ├── elm-graphql.ts │ ├── formatted-write.ts │ ├── introspection-query.ts │ ├── versions.js │ └── versions.ts.template └── tests │ ├── Generator │ ├── AnnotatedArgTests.elm │ ├── DocCommentTests.elm │ ├── EnumTests.elm │ ├── FieldTests.elm │ ├── ImportsTests.elm │ ├── InputObjectLoopsTests.elm │ ├── ModuleNameTests.elm │ ├── NormalizeTests.elm │ ├── OptionalArgsTests.elm │ ├── RequiredArgsTests.elm │ └── ScopeDefinitionsTests.elm │ ├── Parser │ └── DecodeTests.elm │ ├── TypeKindTests.elm │ └── TypeTests.elm ├── introspection-result.json ├── package-lock.json ├── package.json ├── reproducing-issues ├── README.md ├── sdl-to-json.js └── sdl.js ├── review ├── elm.json └── src │ └── ReviewConfig.elm ├── schemas ├── end-to-end-schema.json └── starwars-schema.json ├── src └── Graphql │ ├── Codec.elm │ ├── Document.elm │ ├── Document │ ├── Argument.elm │ ├── Field.elm │ ├── Hash.elm │ └── Indent.elm │ ├── Http.elm │ ├── Http │ ├── GraphqlError.elm │ ├── QueryHelper.elm │ └── QueryParams.elm │ ├── Internal │ ├── Builder │ │ ├── Argument.elm │ │ └── Object.elm │ └── Encode.elm │ ├── Operation.elm │ ├── OptionalArgument.elm │ ├── RawField.elm │ └── SelectionSet.elm ├── tests ├── DocumentTests.elm ├── EncodeTests.elm └── Http │ ├── GraphqlErrorTests.elm │ └── QueryHelperTests.elm └── tsconfig.json /.gitattributes: -------------------------------------------------------------------------------- 1 | dist/ binary 2 | ete_tests/src/Normalize/**/* -dist -merge 3 | ete_tests/src/Normalize/**/* linguist-generated=true 4 | # examples/src/Swapi/**/* linguist-generated=true 5 | # examples/src/Swapi/**/* -dist -merge 6 | examples/src/Github/**/* linguist-generated=true 7 | examples/src/Github/**/* -dist -merge 8 | -------------------------------------------------------------------------------- /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | github: [dillonkearns] 2 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Distribution 2 | dist/bundle.js 3 | build/ 4 | documentation.json 5 | docs.json 6 | */elm.js 7 | *elm-graphql-metadata.json 8 | generator/.elm-pages/ 9 | 10 | # elm-package generated files 11 | elm-stuff 12 | 13 | # elm-repl generated files 14 | repl-temp-* 15 | 16 | # Dependency directories 17 | node_modules 18 | 19 | # Desktop Services Store on macOS 20 | .DS_Store 21 | .cache 22 | -------------------------------------------------------------------------------- /assets/github-optional-arg-error.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dillonkearns/elm-graphql/465a61c71d83fdafd0331bda7735580508c03175/assets/github-optional-arg-error.png -------------------------------------------------------------------------------- /assets/scalar-codecs-tutorial.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dillonkearns/elm-graphql/465a61c71d83fdafd0331bda7735580508c03175/assets/scalar-codecs-tutorial.png -------------------------------------------------------------------------------- /assets/types-without-borders.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dillonkearns/elm-graphql/465a61c71d83fdafd0331bda7735580508c03175/assets/types-without-borders.png -------------------------------------------------------------------------------- /bin/elm-graphql: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | import { fileURLToPath } from 'url'; 4 | import { dirname } from 'path'; 5 | import * as path from 'path'; 6 | 7 | const __filename = fileURLToPath(import.meta.url); 8 | const __dirname = dirname(__filename); 9 | 10 | // Use dynamic import for the bundle 11 | import(path.join(__dirname, '../dist/bundle.js')) 12 | .catch(e => { 13 | console.error('Error loading bundle:', e); 14 | process.exit(1); 15 | }); 16 | -------------------------------------------------------------------------------- /docs/Subscriptions-FAQ.md: -------------------------------------------------------------------------------- 1 | ## Is there an example? 2 | Yes, see https://github.com/dillonkearns/elm-graphql/tree/master/examples/subscription. If you don't use Absinthe, then your JavaScript code for the Ports will need to be changed out to use code for your specific server-side framework. 3 | 4 | ## How do I connect to my GraphQL Server using a Subscription? 5 | `Query`s and `Mutation`s in GraphQL have some standards for how to be sent (either HTTP GET or POST). However, `Subscription`s are not as standardized. The transfer protocol is completely non-standard. The handshakes and such to initialize the subscription are completely specific to each server-side GraphQL framework. 6 | 7 | That's why even with a native `Websocket` package in Elm (which as of this writing is not available in 0.19), it's best to use Ports to offload the responsibility of doing the Subscription handshake a JavaScript snippet or package that knows about your particular framework (Elixir/Abinsthe, for example). 8 | -------------------------------------------------------------------------------- /docs/elm-19-upgrade.md: -------------------------------------------------------------------------------- 1 | # `dillonkearns/elm-graphql` (Formerly Graphqelm) 0.19 Upgrade Guide 2 | 3 | How to upgrade from Elm 0.18 with `dillonkearns/graphqelm` to Elm 0.19 with 4 | `dillonkearns/elm-graphql` 5 | 6 | You can take a look at the [changelog entry](https://github.com/dillonkearns/elm-graphql/blob/master/CHANGELOG-ELM-PACKAGE.md#100---2018-08-23) for a full list of changes. 7 | 8 | With the Elm 0.19 update, `dillonkearns/graphqelm` was moved to `dillonkearns/elm-graphql` to follow the elm literal naming convention (see 9 | [issue #23](https://github.com/dillonkearns/elm-graphql/issues/23)). First you 10 | can use the [`elm-upgrade`](https://github.com/avh4/elm-upgrade#elm-upgrade--) 11 | tool to get your code ready for Elm 0.19. Running the latest version of `elm-upgrade` will 12 | automatically rename the dependency in `elm.json` for you. Then simply do a find 13 | and replace of `Graphqelm.` in your codebase with `Graphql.`. 14 | 15 | If you were using the `Graphqelm.Subscription` module, please see the removed 16 | section in the [changelog entry](https://github.com/dillonkearns/elm-graphql/blob/master/CHANGELOG-ELM-PACKAGE.md#100---2018-08-23) (while you can still 17 | get decoders and subscription queries from `dillonkearns/elm-graphql` for your GraphQL Subscriptions, the low-level transport protocol for subscriptions will be handled by outside packages and code). 18 | -------------------------------------------------------------------------------- /docs/fixing-other-errors.md: -------------------------------------------------------------------------------- 1 | # Fixing Other Errors 2 | 3 | ### Map.!: given key is not an element in the map 4 | 5 | This is a compiler issue which it is possible to run into while using `dillonkearns/elm-graphql`. The error is caused by the `HttpError` type, which references `Http.Metadata`. If you do not have `elm/http` as a direct dependency in your project, the compiler will get confused and throw the error above. 6 | 7 | To resolve this, simply add `elm/http` as a direct dependency in your project. 8 | 9 | You can read more about the compiler issue here https://github.com/elm/compiler/issues/1864 10 | -------------------------------------------------------------------------------- /docs/reproducing-codegen-issues.md: -------------------------------------------------------------------------------- 1 | Please follow one of these steps so I can see if I can reproduce code generation issues locally: 2 | 3 | 1. Is your API public-facing? If so, please share the link to your GraphQL endpoint. 4 | or 5 | 2. You can send me your schema.json. Just execute [the introspection `gql` query](https://raw.githubusercontent.com/dillonkearns/elm-graphql/master/docs/introspection-query.gql) and send me the result. 6 | -------------------------------------------------------------------------------- /elm-analyse.json: -------------------------------------------------------------------------------- 1 | { 2 | "checks": { 3 | "UnusedImportAlias": false, 4 | "UnusedVariable": false, 5 | "UnusedPatternVariable": false 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /elm-tooling.json: -------------------------------------------------------------------------------- 1 | { 2 | "tools": { 3 | "elm": "0.19.1", 4 | "elm-format": "0.8.3", 5 | "elm-test-rs": "3.0.0" 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /elm.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "package", 3 | "name": "dillonkearns/elm-graphql", 4 | "summary": "Type-safe GraphQL queries in Elm.", 5 | "license": "BSD-3-Clause", 6 | "version": "5.0.12", 7 | "exposed-modules": [ 8 | "Graphql.Operation", 9 | "Graphql.Http", 10 | "Graphql.SelectionSet", 11 | "Graphql.Internal.Encode", 12 | "Graphql.Document", 13 | "Graphql.Internal.Builder.Argument", 14 | "Graphql.Internal.Builder.Object", 15 | "Graphql.OptionalArgument", 16 | "Graphql.Http.GraphqlError", 17 | "Graphql.Codec" 18 | ], 19 | "elm-version": "0.19.0 <= v < 0.20.0", 20 | "dependencies": { 21 | "elm/core": "1.0.2 <= v < 2.0.0", 22 | "elm/http": "2.0.0 <= v < 3.0.0", 23 | "elm/json": "1.1.1 <= v < 2.0.0", 24 | "elm/url": "1.0.0 <= v < 2.0.0", 25 | "j-maas/elm-ordered-containers": "1.0.0 <= v < 2.0.0", 26 | "lukewestby/elm-string-interpolate": "1.0.4 <= v < 2.0.0" 27 | }, 28 | "test-dependencies": { 29 | "elm-explorations/test": "2.0.0 <= v < 3.0.0" 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /ete_tests/edge-cases.gql: -------------------------------------------------------------------------------- 1 | schema { 2 | query: RootQueryType 3 | mutation: RootMutationType 4 | } 5 | 6 | input ShapeInput { 7 | kind: String 8 | geometry: [[Float]] 9 | } 10 | 11 | type RootMutationType { 12 | createPunchListItem(shapes: [ShapeInput]): String! 13 | } 14 | 15 | type RootQueryType { 16 | hello(name: String!): String! 17 | characters: [Character!]! 18 | } 19 | 20 | interface Character { 21 | name: String! 22 | } 23 | 24 | interface Species implements Character { 25 | name: String! 26 | numberOfHearts: Int! 27 | } 28 | 29 | type Human implements Character & Species { 30 | name: String! 31 | numberOfHearts: Int! 32 | ogTerrain: Boolean! 33 | } 34 | -------------------------------------------------------------------------------- /ete_tests/elm.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "application", 3 | "source-directories": [ 4 | "../src", 5 | "src", 6 | "../examples/src", 7 | "no-format-example" 8 | ], 9 | "elm-version": "0.19.1", 10 | "dependencies": { 11 | "direct": { 12 | "elm/browser": "1.0.1", 13 | "elm/core": "1.0.2", 14 | "elm/html": "1.0.0", 15 | "elm/http": "2.0.0", 16 | "elm/json": "1.1.2", 17 | "elm/url": "1.0.0", 18 | "elm-community/list-extra": "8.0.0", 19 | "j-maas/elm-ordered-containers": "1.0.0", 20 | "krisajenkins/remotedata": "6.0.1", 21 | "lukewestby/elm-string-interpolate": "1.0.4" 22 | }, 23 | "indirect": { 24 | "elm/bytes": "1.0.7", 25 | "elm/file": "1.0.1", 26 | "elm/regex": "1.0.0", 27 | "elm/time": "1.0.0", 28 | "elm/virtual-dom": "1.0.2" 29 | } 30 | }, 31 | "test-dependencies": { 32 | "direct": {}, 33 | "indirect": {} 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /ete_tests/no-format-example/GithubNoFormat/Interface.elm: -------------------------------------------------------------------------------- 1 | -- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql 2 | -- https://github.com/dillonkearns/elm-graphql 3 | module GithubNoFormat.Interface exposing (..) 4 | 5 | 6 | type Actor 7 | = Actor 8 | 9 | 10 | type Assignable 11 | = Assignable 12 | 13 | 14 | type Closable 15 | = Closable 16 | 17 | 18 | type Comment 19 | = Comment 20 | 21 | 22 | type Deletable 23 | = Deletable 24 | 25 | 26 | type GitObject 27 | = GitObject 28 | 29 | 30 | type GitSignature 31 | = GitSignature 32 | 33 | 34 | type Labelable 35 | = Labelable 36 | 37 | 38 | type Lockable 39 | = Lockable 40 | 41 | 42 | type Node 43 | = Node 44 | 45 | 46 | type ProjectOwner 47 | = ProjectOwner 48 | 49 | 50 | type Reactable 51 | = Reactable 52 | 53 | 54 | type RepositoryInfo 55 | = RepositoryInfo 56 | 57 | 58 | type RepositoryNode 59 | = RepositoryNode 60 | 61 | 62 | type RepositoryOwner 63 | = RepositoryOwner 64 | 65 | 66 | type Starrable 67 | = Starrable 68 | 69 | 70 | type Subscribable 71 | = Subscribable 72 | 73 | 74 | type UniformResourceLocatable 75 | = UniformResourceLocatable 76 | 77 | 78 | type Updatable 79 | = Updatable 80 | 81 | 82 | type UpdatableComment 83 | = UpdatableComment 84 | -------------------------------------------------------------------------------- /ete_tests/no-format-example/GithubNoFormat/Object/AddStarPayload.elm: -------------------------------------------------------------------------------- 1 | -- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql 2 | -- https://github.com/dillonkearns/elm-graphql 3 | module GithubNoFormat.Object.AddStarPayload exposing (..) 4 | 5 | import Graphql.Internal.Builder.Argument as Argument exposing (Argument) 6 | import Graphql.Internal.Builder.Object as Object 7 | import Graphql.SelectionSet exposing (SelectionSet) 8 | import Graphql.OptionalArgument exposing (OptionalArgument(..)) 9 | import Graphql.Operation exposing (RootMutation, RootQuery, RootSubscription) 10 | import GithubNoFormat.Object 11 | import GithubNoFormat.Interface 12 | import GithubNoFormat.Union 13 | import GithubNoFormat.Scalar 14 | import GithubNoFormat.InputObject 15 | import GithubNoFormat.ScalarCodecs 16 | import Json.Decode as Decode 17 | import Graphql.Internal.Encode as Encode exposing (Value) 18 | 19 | {-| A unique identifier for the client performing the mutation. 20 | -} 21 | clientMutationId : SelectionSet (Maybe String) GithubNoFormat.Object.AddStarPayload 22 | clientMutationId = 23 | Object.selectionForField "(Maybe String)" "clientMutationId" [] (Decode.string |> Decode.nullable) 24 | 25 | 26 | {-| The starrable. 27 | -} 28 | starrable : SelectionSet decodesTo GithubNoFormat.Interface.Starrable 29 | -> SelectionSet decodesTo GithubNoFormat.Object.AddStarPayload 30 | starrable object____ = 31 | Object.selectionForCompositeField "starrable" [] (object____) (Basics.identity) 32 | -------------------------------------------------------------------------------- /ete_tests/no-format-example/GithubNoFormat/Object/Blame.elm: -------------------------------------------------------------------------------- 1 | -- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql 2 | -- https://github.com/dillonkearns/elm-graphql 3 | module GithubNoFormat.Object.Blame exposing (..) 4 | 5 | import Graphql.Internal.Builder.Argument as Argument exposing (Argument) 6 | import Graphql.Internal.Builder.Object as Object 7 | import Graphql.SelectionSet exposing (SelectionSet) 8 | import Graphql.OptionalArgument exposing (OptionalArgument(..)) 9 | import Graphql.Operation exposing (RootMutation, RootQuery, RootSubscription) 10 | import GithubNoFormat.Object 11 | import GithubNoFormat.Interface 12 | import GithubNoFormat.Union 13 | import GithubNoFormat.Scalar 14 | import GithubNoFormat.InputObject 15 | import GithubNoFormat.ScalarCodecs 16 | import Json.Decode as Decode 17 | import Graphql.Internal.Encode as Encode exposing (Value) 18 | 19 | {-| The list of ranges from a Git blame. 20 | -} 21 | ranges : SelectionSet decodesTo GithubNoFormat.Object.BlameRange 22 | -> SelectionSet (List decodesTo) GithubNoFormat.Object.Blame 23 | ranges object____ = 24 | Object.selectionForCompositeField "ranges" [] (object____) (Basics.identity >> Decode.list) 25 | -------------------------------------------------------------------------------- /ete_tests/no-format-example/GithubNoFormat/Object/CommitCommentEdge.elm: -------------------------------------------------------------------------------- 1 | -- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql 2 | -- https://github.com/dillonkearns/elm-graphql 3 | module GithubNoFormat.Object.CommitCommentEdge exposing (..) 4 | 5 | import Graphql.Internal.Builder.Argument as Argument exposing (Argument) 6 | import Graphql.Internal.Builder.Object as Object 7 | import Graphql.SelectionSet exposing (SelectionSet) 8 | import Graphql.OptionalArgument exposing (OptionalArgument(..)) 9 | import Graphql.Operation exposing (RootMutation, RootQuery, RootSubscription) 10 | import GithubNoFormat.Object 11 | import GithubNoFormat.Interface 12 | import GithubNoFormat.Union 13 | import GithubNoFormat.Scalar 14 | import GithubNoFormat.InputObject 15 | import GithubNoFormat.ScalarCodecs 16 | import Json.Decode as Decode 17 | import Graphql.Internal.Encode as Encode exposing (Value) 18 | 19 | {-| A cursor for use in pagination. 20 | -} 21 | cursor : SelectionSet String GithubNoFormat.Object.CommitCommentEdge 22 | cursor = 23 | Object.selectionForField "String" "cursor" [] (Decode.string) 24 | 25 | 26 | {-| The item at the end of the edge. 27 | -} 28 | node : SelectionSet decodesTo GithubNoFormat.Object.CommitComment 29 | -> SelectionSet (Maybe decodesTo) GithubNoFormat.Object.CommitCommentEdge 30 | node object____ = 31 | Object.selectionForCompositeField "node" [] (object____) (Basics.identity >> Decode.nullable) 32 | -------------------------------------------------------------------------------- /ete_tests/no-format-example/GithubNoFormat/Object/CommitEdge.elm: -------------------------------------------------------------------------------- 1 | -- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql 2 | -- https://github.com/dillonkearns/elm-graphql 3 | module GithubNoFormat.Object.CommitEdge exposing (..) 4 | 5 | import Graphql.Internal.Builder.Argument as Argument exposing (Argument) 6 | import Graphql.Internal.Builder.Object as Object 7 | import Graphql.SelectionSet exposing (SelectionSet) 8 | import Graphql.OptionalArgument exposing (OptionalArgument(..)) 9 | import Graphql.Operation exposing (RootMutation, RootQuery, RootSubscription) 10 | import GithubNoFormat.Object 11 | import GithubNoFormat.Interface 12 | import GithubNoFormat.Union 13 | import GithubNoFormat.Scalar 14 | import GithubNoFormat.InputObject 15 | import GithubNoFormat.ScalarCodecs 16 | import Json.Decode as Decode 17 | import Graphql.Internal.Encode as Encode exposing (Value) 18 | 19 | {-| A cursor for use in pagination. 20 | -} 21 | cursor : SelectionSet String GithubNoFormat.Object.CommitEdge 22 | cursor = 23 | Object.selectionForField "String" "cursor" [] (Decode.string) 24 | 25 | 26 | {-| The item at the end of the edge. 27 | -} 28 | node : SelectionSet decodesTo GithubNoFormat.Object.Commit 29 | -> SelectionSet (Maybe decodesTo) GithubNoFormat.Object.CommitEdge 30 | node object____ = 31 | Object.selectionForCompositeField "node" [] (object____) (Basics.identity >> Decode.nullable) 32 | -------------------------------------------------------------------------------- /ete_tests/no-format-example/GithubNoFormat/Object/DeployKeyEdge.elm: -------------------------------------------------------------------------------- 1 | -- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql 2 | -- https://github.com/dillonkearns/elm-graphql 3 | module GithubNoFormat.Object.DeployKeyEdge exposing (..) 4 | 5 | import Graphql.Internal.Builder.Argument as Argument exposing (Argument) 6 | import Graphql.Internal.Builder.Object as Object 7 | import Graphql.SelectionSet exposing (SelectionSet) 8 | import Graphql.OptionalArgument exposing (OptionalArgument(..)) 9 | import Graphql.Operation exposing (RootMutation, RootQuery, RootSubscription) 10 | import GithubNoFormat.Object 11 | import GithubNoFormat.Interface 12 | import GithubNoFormat.Union 13 | import GithubNoFormat.Scalar 14 | import GithubNoFormat.InputObject 15 | import GithubNoFormat.ScalarCodecs 16 | import Json.Decode as Decode 17 | import Graphql.Internal.Encode as Encode exposing (Value) 18 | 19 | {-| A cursor for use in pagination. 20 | -} 21 | cursor : SelectionSet String GithubNoFormat.Object.DeployKeyEdge 22 | cursor = 23 | Object.selectionForField "String" "cursor" [] (Decode.string) 24 | 25 | 26 | {-| The item at the end of the edge. 27 | -} 28 | node : SelectionSet decodesTo GithubNoFormat.Object.DeployKey 29 | -> SelectionSet (Maybe decodesTo) GithubNoFormat.Object.DeployKeyEdge 30 | node object____ = 31 | Object.selectionForCompositeField "node" [] (object____) (Basics.identity >> Decode.nullable) 32 | -------------------------------------------------------------------------------- /ete_tests/no-format-example/GithubNoFormat/Object/DeploymentEdge.elm: -------------------------------------------------------------------------------- 1 | -- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql 2 | -- https://github.com/dillonkearns/elm-graphql 3 | module GithubNoFormat.Object.DeploymentEdge exposing (..) 4 | 5 | import Graphql.Internal.Builder.Argument as Argument exposing (Argument) 6 | import Graphql.Internal.Builder.Object as Object 7 | import Graphql.SelectionSet exposing (SelectionSet) 8 | import Graphql.OptionalArgument exposing (OptionalArgument(..)) 9 | import Graphql.Operation exposing (RootMutation, RootQuery, RootSubscription) 10 | import GithubNoFormat.Object 11 | import GithubNoFormat.Interface 12 | import GithubNoFormat.Union 13 | import GithubNoFormat.Scalar 14 | import GithubNoFormat.InputObject 15 | import GithubNoFormat.ScalarCodecs 16 | import Json.Decode as Decode 17 | import Graphql.Internal.Encode as Encode exposing (Value) 18 | 19 | {-| A cursor for use in pagination. 20 | -} 21 | cursor : SelectionSet String GithubNoFormat.Object.DeploymentEdge 22 | cursor = 23 | Object.selectionForField "String" "cursor" [] (Decode.string) 24 | 25 | 26 | {-| The item at the end of the edge. 27 | -} 28 | node : SelectionSet decodesTo GithubNoFormat.Object.Deployment 29 | -> SelectionSet (Maybe decodesTo) GithubNoFormat.Object.DeploymentEdge 30 | node object____ = 31 | Object.selectionForCompositeField "node" [] (object____) (Basics.identity >> Decode.nullable) 32 | -------------------------------------------------------------------------------- /ete_tests/no-format-example/GithubNoFormat/Object/DeploymentStatusEdge.elm: -------------------------------------------------------------------------------- 1 | -- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql 2 | -- https://github.com/dillonkearns/elm-graphql 3 | module GithubNoFormat.Object.DeploymentStatusEdge exposing (..) 4 | 5 | import Graphql.Internal.Builder.Argument as Argument exposing (Argument) 6 | import Graphql.Internal.Builder.Object as Object 7 | import Graphql.SelectionSet exposing (SelectionSet) 8 | import Graphql.OptionalArgument exposing (OptionalArgument(..)) 9 | import Graphql.Operation exposing (RootMutation, RootQuery, RootSubscription) 10 | import GithubNoFormat.Object 11 | import GithubNoFormat.Interface 12 | import GithubNoFormat.Union 13 | import GithubNoFormat.Scalar 14 | import GithubNoFormat.InputObject 15 | import GithubNoFormat.ScalarCodecs 16 | import Json.Decode as Decode 17 | import Graphql.Internal.Encode as Encode exposing (Value) 18 | 19 | {-| A cursor for use in pagination. 20 | -} 21 | cursor : SelectionSet String GithubNoFormat.Object.DeploymentStatusEdge 22 | cursor = 23 | Object.selectionForField "String" "cursor" [] (Decode.string) 24 | 25 | 26 | {-| The item at the end of the edge. 27 | -} 28 | node : SelectionSet decodesTo GithubNoFormat.Object.DeploymentStatus 29 | -> SelectionSet (Maybe decodesTo) GithubNoFormat.Object.DeploymentStatusEdge 30 | node object____ = 31 | Object.selectionForCompositeField "node" [] (object____) (Basics.identity >> Decode.nullable) 32 | -------------------------------------------------------------------------------- /ete_tests/no-format-example/GithubNoFormat/Object/ExternalIdentityEdge.elm: -------------------------------------------------------------------------------- 1 | -- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql 2 | -- https://github.com/dillonkearns/elm-graphql 3 | module GithubNoFormat.Object.ExternalIdentityEdge exposing (..) 4 | 5 | import Graphql.Internal.Builder.Argument as Argument exposing (Argument) 6 | import Graphql.Internal.Builder.Object as Object 7 | import Graphql.SelectionSet exposing (SelectionSet) 8 | import Graphql.OptionalArgument exposing (OptionalArgument(..)) 9 | import Graphql.Operation exposing (RootMutation, RootQuery, RootSubscription) 10 | import GithubNoFormat.Object 11 | import GithubNoFormat.Interface 12 | import GithubNoFormat.Union 13 | import GithubNoFormat.Scalar 14 | import GithubNoFormat.InputObject 15 | import GithubNoFormat.ScalarCodecs 16 | import Json.Decode as Decode 17 | import Graphql.Internal.Encode as Encode exposing (Value) 18 | 19 | {-| A cursor for use in pagination. 20 | -} 21 | cursor : SelectionSet String GithubNoFormat.Object.ExternalIdentityEdge 22 | cursor = 23 | Object.selectionForField "String" "cursor" [] (Decode.string) 24 | 25 | 26 | {-| The item at the end of the edge. 27 | -} 28 | node : SelectionSet decodesTo GithubNoFormat.Object.ExternalIdentity 29 | -> SelectionSet (Maybe decodesTo) GithubNoFormat.Object.ExternalIdentityEdge 30 | node object____ = 31 | Object.selectionForCompositeField "node" [] (object____) (Basics.identity >> Decode.nullable) 32 | -------------------------------------------------------------------------------- /ete_tests/no-format-example/GithubNoFormat/Object/ExternalIdentitySamlAttributes.elm: -------------------------------------------------------------------------------- 1 | -- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql 2 | -- https://github.com/dillonkearns/elm-graphql 3 | module GithubNoFormat.Object.ExternalIdentitySamlAttributes exposing (..) 4 | 5 | import Graphql.Internal.Builder.Argument as Argument exposing (Argument) 6 | import Graphql.Internal.Builder.Object as Object 7 | import Graphql.SelectionSet exposing (SelectionSet) 8 | import Graphql.OptionalArgument exposing (OptionalArgument(..)) 9 | import Graphql.Operation exposing (RootMutation, RootQuery, RootSubscription) 10 | import GithubNoFormat.Object 11 | import GithubNoFormat.Interface 12 | import GithubNoFormat.Union 13 | import GithubNoFormat.Scalar 14 | import GithubNoFormat.InputObject 15 | import GithubNoFormat.ScalarCodecs 16 | import Json.Decode as Decode 17 | import Graphql.Internal.Encode as Encode exposing (Value) 18 | 19 | {-| The NameID of the SAML identity 20 | -} 21 | nameId : SelectionSet (Maybe String) GithubNoFormat.Object.ExternalIdentitySamlAttributes 22 | nameId = 23 | Object.selectionForField "(Maybe String)" "nameId" [] (Decode.string |> Decode.nullable) 24 | -------------------------------------------------------------------------------- /ete_tests/no-format-example/GithubNoFormat/Object/ExternalIdentityScimAttributes.elm: -------------------------------------------------------------------------------- 1 | -- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql 2 | -- https://github.com/dillonkearns/elm-graphql 3 | module GithubNoFormat.Object.ExternalIdentityScimAttributes exposing (..) 4 | 5 | import Graphql.Internal.Builder.Argument as Argument exposing (Argument) 6 | import Graphql.Internal.Builder.Object as Object 7 | import Graphql.SelectionSet exposing (SelectionSet) 8 | import Graphql.OptionalArgument exposing (OptionalArgument(..)) 9 | import Graphql.Operation exposing (RootMutation, RootQuery, RootSubscription) 10 | import GithubNoFormat.Object 11 | import GithubNoFormat.Interface 12 | import GithubNoFormat.Union 13 | import GithubNoFormat.Scalar 14 | import GithubNoFormat.InputObject 15 | import GithubNoFormat.ScalarCodecs 16 | import Json.Decode as Decode 17 | import Graphql.Internal.Encode as Encode exposing (Value) 18 | 19 | {-| The userName of the SCIM identity 20 | -} 21 | username : SelectionSet (Maybe String) GithubNoFormat.Object.ExternalIdentityScimAttributes 22 | username = 23 | Object.selectionForField "(Maybe String)" "username" [] (Decode.string |> Decode.nullable) 24 | -------------------------------------------------------------------------------- /ete_tests/no-format-example/GithubNoFormat/Object/GistCommentEdge.elm: -------------------------------------------------------------------------------- 1 | -- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql 2 | -- https://github.com/dillonkearns/elm-graphql 3 | module GithubNoFormat.Object.GistCommentEdge exposing (..) 4 | 5 | import Graphql.Internal.Builder.Argument as Argument exposing (Argument) 6 | import Graphql.Internal.Builder.Object as Object 7 | import Graphql.SelectionSet exposing (SelectionSet) 8 | import Graphql.OptionalArgument exposing (OptionalArgument(..)) 9 | import Graphql.Operation exposing (RootMutation, RootQuery, RootSubscription) 10 | import GithubNoFormat.Object 11 | import GithubNoFormat.Interface 12 | import GithubNoFormat.Union 13 | import GithubNoFormat.Scalar 14 | import GithubNoFormat.InputObject 15 | import GithubNoFormat.ScalarCodecs 16 | import Json.Decode as Decode 17 | import Graphql.Internal.Encode as Encode exposing (Value) 18 | 19 | {-| A cursor for use in pagination. 20 | -} 21 | cursor : SelectionSet String GithubNoFormat.Object.GistCommentEdge 22 | cursor = 23 | Object.selectionForField "String" "cursor" [] (Decode.string) 24 | 25 | 26 | {-| The item at the end of the edge. 27 | -} 28 | node : SelectionSet decodesTo GithubNoFormat.Object.GistComment 29 | -> SelectionSet (Maybe decodesTo) GithubNoFormat.Object.GistCommentEdge 30 | node object____ = 31 | Object.selectionForCompositeField "node" [] (object____) (Basics.identity >> Decode.nullable) 32 | -------------------------------------------------------------------------------- /ete_tests/no-format-example/GithubNoFormat/Object/GistEdge.elm: -------------------------------------------------------------------------------- 1 | -- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql 2 | -- https://github.com/dillonkearns/elm-graphql 3 | module GithubNoFormat.Object.GistEdge exposing (..) 4 | 5 | import Graphql.Internal.Builder.Argument as Argument exposing (Argument) 6 | import Graphql.Internal.Builder.Object as Object 7 | import Graphql.SelectionSet exposing (SelectionSet) 8 | import Graphql.OptionalArgument exposing (OptionalArgument(..)) 9 | import Graphql.Operation exposing (RootMutation, RootQuery, RootSubscription) 10 | import GithubNoFormat.Object 11 | import GithubNoFormat.Interface 12 | import GithubNoFormat.Union 13 | import GithubNoFormat.Scalar 14 | import GithubNoFormat.InputObject 15 | import GithubNoFormat.ScalarCodecs 16 | import Json.Decode as Decode 17 | import Graphql.Internal.Encode as Encode exposing (Value) 18 | 19 | {-| A cursor for use in pagination. 20 | -} 21 | cursor : SelectionSet String GithubNoFormat.Object.GistEdge 22 | cursor = 23 | Object.selectionForField "String" "cursor" [] (Decode.string) 24 | 25 | 26 | {-| The item at the end of the edge. 27 | -} 28 | node : SelectionSet decodesTo GithubNoFormat.Object.Gist 29 | -> SelectionSet (Maybe decodesTo) GithubNoFormat.Object.GistEdge 30 | node object____ = 31 | Object.selectionForCompositeField "node" [] (object____) (Basics.identity >> Decode.nullable) 32 | -------------------------------------------------------------------------------- /ete_tests/no-format-example/GithubNoFormat/Object/IssueCommentEdge.elm: -------------------------------------------------------------------------------- 1 | -- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql 2 | -- https://github.com/dillonkearns/elm-graphql 3 | module GithubNoFormat.Object.IssueCommentEdge exposing (..) 4 | 5 | import Graphql.Internal.Builder.Argument as Argument exposing (Argument) 6 | import Graphql.Internal.Builder.Object as Object 7 | import Graphql.SelectionSet exposing (SelectionSet) 8 | import Graphql.OptionalArgument exposing (OptionalArgument(..)) 9 | import Graphql.Operation exposing (RootMutation, RootQuery, RootSubscription) 10 | import GithubNoFormat.Object 11 | import GithubNoFormat.Interface 12 | import GithubNoFormat.Union 13 | import GithubNoFormat.Scalar 14 | import GithubNoFormat.InputObject 15 | import GithubNoFormat.ScalarCodecs 16 | import Json.Decode as Decode 17 | import Graphql.Internal.Encode as Encode exposing (Value) 18 | 19 | {-| A cursor for use in pagination. 20 | -} 21 | cursor : SelectionSet String GithubNoFormat.Object.IssueCommentEdge 22 | cursor = 23 | Object.selectionForField "String" "cursor" [] (Decode.string) 24 | 25 | 26 | {-| The item at the end of the edge. 27 | -} 28 | node : SelectionSet decodesTo GithubNoFormat.Object.IssueComment 29 | -> SelectionSet (Maybe decodesTo) GithubNoFormat.Object.IssueCommentEdge 30 | node object____ = 31 | Object.selectionForCompositeField "node" [] (object____) (Basics.identity >> Decode.nullable) 32 | -------------------------------------------------------------------------------- /ete_tests/no-format-example/GithubNoFormat/Object/IssueEdge.elm: -------------------------------------------------------------------------------- 1 | -- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql 2 | -- https://github.com/dillonkearns/elm-graphql 3 | module GithubNoFormat.Object.IssueEdge exposing (..) 4 | 5 | import Graphql.Internal.Builder.Argument as Argument exposing (Argument) 6 | import Graphql.Internal.Builder.Object as Object 7 | import Graphql.SelectionSet exposing (SelectionSet) 8 | import Graphql.OptionalArgument exposing (OptionalArgument(..)) 9 | import Graphql.Operation exposing (RootMutation, RootQuery, RootSubscription) 10 | import GithubNoFormat.Object 11 | import GithubNoFormat.Interface 12 | import GithubNoFormat.Union 13 | import GithubNoFormat.Scalar 14 | import GithubNoFormat.InputObject 15 | import GithubNoFormat.ScalarCodecs 16 | import Json.Decode as Decode 17 | import Graphql.Internal.Encode as Encode exposing (Value) 18 | 19 | {-| A cursor for use in pagination. 20 | -} 21 | cursor : SelectionSet String GithubNoFormat.Object.IssueEdge 22 | cursor = 23 | Object.selectionForField "String" "cursor" [] (Decode.string) 24 | 25 | 26 | {-| The item at the end of the edge. 27 | -} 28 | node : SelectionSet decodesTo GithubNoFormat.Object.Issue 29 | -> SelectionSet (Maybe decodesTo) GithubNoFormat.Object.IssueEdge 30 | node object____ = 31 | Object.selectionForCompositeField "node" [] (object____) (Basics.identity >> Decode.nullable) 32 | -------------------------------------------------------------------------------- /ete_tests/no-format-example/GithubNoFormat/Object/IssueTimelineItemEdge.elm: -------------------------------------------------------------------------------- 1 | -- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql 2 | -- https://github.com/dillonkearns/elm-graphql 3 | module GithubNoFormat.Object.IssueTimelineItemEdge exposing (..) 4 | 5 | import Graphql.Internal.Builder.Argument as Argument exposing (Argument) 6 | import Graphql.Internal.Builder.Object as Object 7 | import Graphql.SelectionSet exposing (SelectionSet) 8 | import Graphql.OptionalArgument exposing (OptionalArgument(..)) 9 | import Graphql.Operation exposing (RootMutation, RootQuery, RootSubscription) 10 | import GithubNoFormat.Object 11 | import GithubNoFormat.Interface 12 | import GithubNoFormat.Union 13 | import GithubNoFormat.Scalar 14 | import GithubNoFormat.InputObject 15 | import GithubNoFormat.ScalarCodecs 16 | import Json.Decode as Decode 17 | import Graphql.Internal.Encode as Encode exposing (Value) 18 | 19 | {-| A cursor for use in pagination. 20 | -} 21 | cursor : SelectionSet String GithubNoFormat.Object.IssueTimelineItemEdge 22 | cursor = 23 | Object.selectionForField "String" "cursor" [] (Decode.string) 24 | 25 | 26 | {-| The item at the end of the edge. 27 | -} 28 | node : SelectionSet decodesTo GithubNoFormat.Union.IssueTimelineItem 29 | -> SelectionSet (Maybe decodesTo) GithubNoFormat.Object.IssueTimelineItemEdge 30 | node object____ = 31 | Object.selectionForCompositeField "node" [] (object____) (Basics.identity >> Decode.nullable) 32 | -------------------------------------------------------------------------------- /ete_tests/no-format-example/GithubNoFormat/Object/LabelEdge.elm: -------------------------------------------------------------------------------- 1 | -- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql 2 | -- https://github.com/dillonkearns/elm-graphql 3 | module GithubNoFormat.Object.LabelEdge exposing (..) 4 | 5 | import Graphql.Internal.Builder.Argument as Argument exposing (Argument) 6 | import Graphql.Internal.Builder.Object as Object 7 | import Graphql.SelectionSet exposing (SelectionSet) 8 | import Graphql.OptionalArgument exposing (OptionalArgument(..)) 9 | import Graphql.Operation exposing (RootMutation, RootQuery, RootSubscription) 10 | import GithubNoFormat.Object 11 | import GithubNoFormat.Interface 12 | import GithubNoFormat.Union 13 | import GithubNoFormat.Scalar 14 | import GithubNoFormat.InputObject 15 | import GithubNoFormat.ScalarCodecs 16 | import Json.Decode as Decode 17 | import Graphql.Internal.Encode as Encode exposing (Value) 18 | 19 | {-| A cursor for use in pagination. 20 | -} 21 | cursor : SelectionSet String GithubNoFormat.Object.LabelEdge 22 | cursor = 23 | Object.selectionForField "String" "cursor" [] (Decode.string) 24 | 25 | 26 | {-| The item at the end of the edge. 27 | -} 28 | node : SelectionSet decodesTo GithubNoFormat.Object.Label 29 | -> SelectionSet (Maybe decodesTo) GithubNoFormat.Object.LabelEdge 30 | node object____ = 31 | Object.selectionForCompositeField "node" [] (object____) (Basics.identity >> Decode.nullable) 32 | -------------------------------------------------------------------------------- /ete_tests/no-format-example/GithubNoFormat/Object/MarketplaceListingEdge.elm: -------------------------------------------------------------------------------- 1 | -- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql 2 | -- https://github.com/dillonkearns/elm-graphql 3 | module GithubNoFormat.Object.MarketplaceListingEdge exposing (..) 4 | 5 | import Graphql.Internal.Builder.Argument as Argument exposing (Argument) 6 | import Graphql.Internal.Builder.Object as Object 7 | import Graphql.SelectionSet exposing (SelectionSet) 8 | import Graphql.OptionalArgument exposing (OptionalArgument(..)) 9 | import Graphql.Operation exposing (RootMutation, RootQuery, RootSubscription) 10 | import GithubNoFormat.Object 11 | import GithubNoFormat.Interface 12 | import GithubNoFormat.Union 13 | import GithubNoFormat.Scalar 14 | import GithubNoFormat.InputObject 15 | import GithubNoFormat.ScalarCodecs 16 | import Json.Decode as Decode 17 | import Graphql.Internal.Encode as Encode exposing (Value) 18 | 19 | {-| A cursor for use in pagination. 20 | -} 21 | cursor : SelectionSet String GithubNoFormat.Object.MarketplaceListingEdge 22 | cursor = 23 | Object.selectionForField "String" "cursor" [] (Decode.string) 24 | 25 | 26 | {-| The item at the end of the edge. 27 | -} 28 | node : SelectionSet decodesTo GithubNoFormat.Object.MarketplaceListing 29 | -> SelectionSet (Maybe decodesTo) GithubNoFormat.Object.MarketplaceListingEdge 30 | node object____ = 31 | Object.selectionForCompositeField "node" [] (object____) (Basics.identity >> Decode.nullable) 32 | -------------------------------------------------------------------------------- /ete_tests/no-format-example/GithubNoFormat/Object/MilestoneEdge.elm: -------------------------------------------------------------------------------- 1 | -- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql 2 | -- https://github.com/dillonkearns/elm-graphql 3 | module GithubNoFormat.Object.MilestoneEdge exposing (..) 4 | 5 | import Graphql.Internal.Builder.Argument as Argument exposing (Argument) 6 | import Graphql.Internal.Builder.Object as Object 7 | import Graphql.SelectionSet exposing (SelectionSet) 8 | import Graphql.OptionalArgument exposing (OptionalArgument(..)) 9 | import Graphql.Operation exposing (RootMutation, RootQuery, RootSubscription) 10 | import GithubNoFormat.Object 11 | import GithubNoFormat.Interface 12 | import GithubNoFormat.Union 13 | import GithubNoFormat.Scalar 14 | import GithubNoFormat.InputObject 15 | import GithubNoFormat.ScalarCodecs 16 | import Json.Decode as Decode 17 | import Graphql.Internal.Encode as Encode exposing (Value) 18 | 19 | {-| A cursor for use in pagination. 20 | -} 21 | cursor : SelectionSet String GithubNoFormat.Object.MilestoneEdge 22 | cursor = 23 | Object.selectionForField "String" "cursor" [] (Decode.string) 24 | 25 | 26 | {-| The item at the end of the edge. 27 | -} 28 | node : SelectionSet decodesTo GithubNoFormat.Object.Milestone 29 | -> SelectionSet (Maybe decodesTo) GithubNoFormat.Object.MilestoneEdge 30 | node object____ = 31 | Object.selectionForCompositeField "node" [] (object____) (Basics.identity >> Decode.nullable) 32 | -------------------------------------------------------------------------------- /ete_tests/no-format-example/GithubNoFormat/Object/OrganizationEdge.elm: -------------------------------------------------------------------------------- 1 | -- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql 2 | -- https://github.com/dillonkearns/elm-graphql 3 | module GithubNoFormat.Object.OrganizationEdge exposing (..) 4 | 5 | import Graphql.Internal.Builder.Argument as Argument exposing (Argument) 6 | import Graphql.Internal.Builder.Object as Object 7 | import Graphql.SelectionSet exposing (SelectionSet) 8 | import Graphql.OptionalArgument exposing (OptionalArgument(..)) 9 | import Graphql.Operation exposing (RootMutation, RootQuery, RootSubscription) 10 | import GithubNoFormat.Object 11 | import GithubNoFormat.Interface 12 | import GithubNoFormat.Union 13 | import GithubNoFormat.Scalar 14 | import GithubNoFormat.InputObject 15 | import GithubNoFormat.ScalarCodecs 16 | import Json.Decode as Decode 17 | import Graphql.Internal.Encode as Encode exposing (Value) 18 | 19 | {-| A cursor for use in pagination. 20 | -} 21 | cursor : SelectionSet String GithubNoFormat.Object.OrganizationEdge 22 | cursor = 23 | Object.selectionForField "String" "cursor" [] (Decode.string) 24 | 25 | 26 | {-| The item at the end of the edge. 27 | -} 28 | node : SelectionSet decodesTo GithubNoFormat.Object.Organization 29 | -> SelectionSet (Maybe decodesTo) GithubNoFormat.Object.OrganizationEdge 30 | node object____ = 31 | Object.selectionForCompositeField "node" [] (object____) (Basics.identity >> Decode.nullable) 32 | -------------------------------------------------------------------------------- /ete_tests/no-format-example/GithubNoFormat/Object/OrganizationInvitationEdge.elm: -------------------------------------------------------------------------------- 1 | -- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql 2 | -- https://github.com/dillonkearns/elm-graphql 3 | module GithubNoFormat.Object.OrganizationInvitationEdge exposing (..) 4 | 5 | import Graphql.Internal.Builder.Argument as Argument exposing (Argument) 6 | import Graphql.Internal.Builder.Object as Object 7 | import Graphql.SelectionSet exposing (SelectionSet) 8 | import Graphql.OptionalArgument exposing (OptionalArgument(..)) 9 | import Graphql.Operation exposing (RootMutation, RootQuery, RootSubscription) 10 | import GithubNoFormat.Object 11 | import GithubNoFormat.Interface 12 | import GithubNoFormat.Union 13 | import GithubNoFormat.Scalar 14 | import GithubNoFormat.InputObject 15 | import GithubNoFormat.ScalarCodecs 16 | import Json.Decode as Decode 17 | import Graphql.Internal.Encode as Encode exposing (Value) 18 | 19 | {-| A cursor for use in pagination. 20 | -} 21 | cursor : SelectionSet String GithubNoFormat.Object.OrganizationInvitationEdge 22 | cursor = 23 | Object.selectionForField "String" "cursor" [] (Decode.string) 24 | 25 | 26 | {-| The item at the end of the edge. 27 | -} 28 | node : SelectionSet decodesTo GithubNoFormat.Object.OrganizationInvitation 29 | -> SelectionSet (Maybe decodesTo) GithubNoFormat.Object.OrganizationInvitationEdge 30 | node object____ = 31 | Object.selectionForCompositeField "node" [] (object____) (Basics.identity >> Decode.nullable) 32 | -------------------------------------------------------------------------------- /ete_tests/no-format-example/GithubNoFormat/Object/ProjectCardEdge.elm: -------------------------------------------------------------------------------- 1 | -- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql 2 | -- https://github.com/dillonkearns/elm-graphql 3 | module GithubNoFormat.Object.ProjectCardEdge exposing (..) 4 | 5 | import Graphql.Internal.Builder.Argument as Argument exposing (Argument) 6 | import Graphql.Internal.Builder.Object as Object 7 | import Graphql.SelectionSet exposing (SelectionSet) 8 | import Graphql.OptionalArgument exposing (OptionalArgument(..)) 9 | import Graphql.Operation exposing (RootMutation, RootQuery, RootSubscription) 10 | import GithubNoFormat.Object 11 | import GithubNoFormat.Interface 12 | import GithubNoFormat.Union 13 | import GithubNoFormat.Scalar 14 | import GithubNoFormat.InputObject 15 | import GithubNoFormat.ScalarCodecs 16 | import Json.Decode as Decode 17 | import Graphql.Internal.Encode as Encode exposing (Value) 18 | 19 | {-| A cursor for use in pagination. 20 | -} 21 | cursor : SelectionSet String GithubNoFormat.Object.ProjectCardEdge 22 | cursor = 23 | Object.selectionForField "String" "cursor" [] (Decode.string) 24 | 25 | 26 | {-| The item at the end of the edge. 27 | -} 28 | node : SelectionSet decodesTo GithubNoFormat.Object.ProjectCard 29 | -> SelectionSet (Maybe decodesTo) GithubNoFormat.Object.ProjectCardEdge 30 | node object____ = 31 | Object.selectionForCompositeField "node" [] (object____) (Basics.identity >> Decode.nullable) 32 | -------------------------------------------------------------------------------- /ete_tests/no-format-example/GithubNoFormat/Object/ProjectColumnEdge.elm: -------------------------------------------------------------------------------- 1 | -- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql 2 | -- https://github.com/dillonkearns/elm-graphql 3 | module GithubNoFormat.Object.ProjectColumnEdge exposing (..) 4 | 5 | import Graphql.Internal.Builder.Argument as Argument exposing (Argument) 6 | import Graphql.Internal.Builder.Object as Object 7 | import Graphql.SelectionSet exposing (SelectionSet) 8 | import Graphql.OptionalArgument exposing (OptionalArgument(..)) 9 | import Graphql.Operation exposing (RootMutation, RootQuery, RootSubscription) 10 | import GithubNoFormat.Object 11 | import GithubNoFormat.Interface 12 | import GithubNoFormat.Union 13 | import GithubNoFormat.Scalar 14 | import GithubNoFormat.InputObject 15 | import GithubNoFormat.ScalarCodecs 16 | import Json.Decode as Decode 17 | import Graphql.Internal.Encode as Encode exposing (Value) 18 | 19 | {-| A cursor for use in pagination. 20 | -} 21 | cursor : SelectionSet String GithubNoFormat.Object.ProjectColumnEdge 22 | cursor = 23 | Object.selectionForField "String" "cursor" [] (Decode.string) 24 | 25 | 26 | {-| The item at the end of the edge. 27 | -} 28 | node : SelectionSet decodesTo GithubNoFormat.Object.ProjectColumn 29 | -> SelectionSet (Maybe decodesTo) GithubNoFormat.Object.ProjectColumnEdge 30 | node object____ = 31 | Object.selectionForCompositeField "node" [] (object____) (Basics.identity >> Decode.nullable) 32 | -------------------------------------------------------------------------------- /ete_tests/no-format-example/GithubNoFormat/Object/ProjectEdge.elm: -------------------------------------------------------------------------------- 1 | -- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql 2 | -- https://github.com/dillonkearns/elm-graphql 3 | module GithubNoFormat.Object.ProjectEdge exposing (..) 4 | 5 | import Graphql.Internal.Builder.Argument as Argument exposing (Argument) 6 | import Graphql.Internal.Builder.Object as Object 7 | import Graphql.SelectionSet exposing (SelectionSet) 8 | import Graphql.OptionalArgument exposing (OptionalArgument(..)) 9 | import Graphql.Operation exposing (RootMutation, RootQuery, RootSubscription) 10 | import GithubNoFormat.Object 11 | import GithubNoFormat.Interface 12 | import GithubNoFormat.Union 13 | import GithubNoFormat.Scalar 14 | import GithubNoFormat.InputObject 15 | import GithubNoFormat.ScalarCodecs 16 | import Json.Decode as Decode 17 | import Graphql.Internal.Encode as Encode exposing (Value) 18 | 19 | {-| A cursor for use in pagination. 20 | -} 21 | cursor : SelectionSet String GithubNoFormat.Object.ProjectEdge 22 | cursor = 23 | Object.selectionForField "String" "cursor" [] (Decode.string) 24 | 25 | 26 | {-| The item at the end of the edge. 27 | -} 28 | node : SelectionSet decodesTo GithubNoFormat.Object.Project 29 | -> SelectionSet (Maybe decodesTo) GithubNoFormat.Object.ProjectEdge 30 | node object____ = 31 | Object.selectionForCompositeField "node" [] (object____) (Basics.identity >> Decode.nullable) 32 | -------------------------------------------------------------------------------- /ete_tests/no-format-example/GithubNoFormat/Object/ProtectedBranchEdge.elm: -------------------------------------------------------------------------------- 1 | -- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql 2 | -- https://github.com/dillonkearns/elm-graphql 3 | module GithubNoFormat.Object.ProtectedBranchEdge exposing (..) 4 | 5 | import Graphql.Internal.Builder.Argument as Argument exposing (Argument) 6 | import Graphql.Internal.Builder.Object as Object 7 | import Graphql.SelectionSet exposing (SelectionSet) 8 | import Graphql.OptionalArgument exposing (OptionalArgument(..)) 9 | import Graphql.Operation exposing (RootMutation, RootQuery, RootSubscription) 10 | import GithubNoFormat.Object 11 | import GithubNoFormat.Interface 12 | import GithubNoFormat.Union 13 | import GithubNoFormat.Scalar 14 | import GithubNoFormat.InputObject 15 | import GithubNoFormat.ScalarCodecs 16 | import Json.Decode as Decode 17 | import Graphql.Internal.Encode as Encode exposing (Value) 18 | 19 | {-| A cursor for use in pagination. 20 | -} 21 | cursor : SelectionSet String GithubNoFormat.Object.ProtectedBranchEdge 22 | cursor = 23 | Object.selectionForField "String" "cursor" [] (Decode.string) 24 | 25 | 26 | {-| The item at the end of the edge. 27 | -} 28 | node : SelectionSet decodesTo GithubNoFormat.Object.ProtectedBranch 29 | -> SelectionSet (Maybe decodesTo) GithubNoFormat.Object.ProtectedBranchEdge 30 | node object____ = 31 | Object.selectionForCompositeField "node" [] (object____) (Basics.identity >> Decode.nullable) 32 | -------------------------------------------------------------------------------- /ete_tests/no-format-example/GithubNoFormat/Object/PublicKey.elm: -------------------------------------------------------------------------------- 1 | -- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql 2 | -- https://github.com/dillonkearns/elm-graphql 3 | module GithubNoFormat.Object.PublicKey exposing (..) 4 | 5 | import Graphql.Internal.Builder.Argument as Argument exposing (Argument) 6 | import Graphql.Internal.Builder.Object as Object 7 | import Graphql.SelectionSet exposing (SelectionSet) 8 | import Graphql.OptionalArgument exposing (OptionalArgument(..)) 9 | import Graphql.Operation exposing (RootMutation, RootQuery, RootSubscription) 10 | import GithubNoFormat.Object 11 | import GithubNoFormat.Interface 12 | import GithubNoFormat.Union 13 | import GithubNoFormat.Scalar 14 | import GithubNoFormat.InputObject 15 | import GithubNoFormat.ScalarCodecs 16 | import Json.Decode as Decode 17 | import Graphql.Internal.Encode as Encode exposing (Value) 18 | 19 | id : SelectionSet GithubNoFormat.ScalarCodecs.Id GithubNoFormat.Object.PublicKey 20 | id = 21 | Object.selectionForField "ScalarCodecs.Id" "id" [] (GithubNoFormat.ScalarCodecs.codecs |> GithubNoFormat.Scalar.unwrapCodecs |> .codecId |> .decoder) 22 | 23 | 24 | {-| The public key string 25 | -} 26 | key : SelectionSet String GithubNoFormat.Object.PublicKey 27 | key = 28 | Object.selectionForField "String" "key" [] (Decode.string) 29 | -------------------------------------------------------------------------------- /ete_tests/no-format-example/GithubNoFormat/Object/PublicKeyEdge.elm: -------------------------------------------------------------------------------- 1 | -- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql 2 | -- https://github.com/dillonkearns/elm-graphql 3 | module GithubNoFormat.Object.PublicKeyEdge exposing (..) 4 | 5 | import Graphql.Internal.Builder.Argument as Argument exposing (Argument) 6 | import Graphql.Internal.Builder.Object as Object 7 | import Graphql.SelectionSet exposing (SelectionSet) 8 | import Graphql.OptionalArgument exposing (OptionalArgument(..)) 9 | import Graphql.Operation exposing (RootMutation, RootQuery, RootSubscription) 10 | import GithubNoFormat.Object 11 | import GithubNoFormat.Interface 12 | import GithubNoFormat.Union 13 | import GithubNoFormat.Scalar 14 | import GithubNoFormat.InputObject 15 | import GithubNoFormat.ScalarCodecs 16 | import Json.Decode as Decode 17 | import Graphql.Internal.Encode as Encode exposing (Value) 18 | 19 | {-| A cursor for use in pagination. 20 | -} 21 | cursor : SelectionSet String GithubNoFormat.Object.PublicKeyEdge 22 | cursor = 23 | Object.selectionForField "String" "cursor" [] (Decode.string) 24 | 25 | 26 | {-| The item at the end of the edge. 27 | -} 28 | node : SelectionSet decodesTo GithubNoFormat.Object.PublicKey 29 | -> SelectionSet (Maybe decodesTo) GithubNoFormat.Object.PublicKeyEdge 30 | node object____ = 31 | Object.selectionForCompositeField "node" [] (object____) (Basics.identity >> Decode.nullable) 32 | -------------------------------------------------------------------------------- /ete_tests/no-format-example/GithubNoFormat/Object/PullRequestCommitEdge.elm: -------------------------------------------------------------------------------- 1 | -- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql 2 | -- https://github.com/dillonkearns/elm-graphql 3 | module GithubNoFormat.Object.PullRequestCommitEdge exposing (..) 4 | 5 | import Graphql.Internal.Builder.Argument as Argument exposing (Argument) 6 | import Graphql.Internal.Builder.Object as Object 7 | import Graphql.SelectionSet exposing (SelectionSet) 8 | import Graphql.OptionalArgument exposing (OptionalArgument(..)) 9 | import Graphql.Operation exposing (RootMutation, RootQuery, RootSubscription) 10 | import GithubNoFormat.Object 11 | import GithubNoFormat.Interface 12 | import GithubNoFormat.Union 13 | import GithubNoFormat.Scalar 14 | import GithubNoFormat.InputObject 15 | import GithubNoFormat.ScalarCodecs 16 | import Json.Decode as Decode 17 | import Graphql.Internal.Encode as Encode exposing (Value) 18 | 19 | {-| A cursor for use in pagination. 20 | -} 21 | cursor : SelectionSet String GithubNoFormat.Object.PullRequestCommitEdge 22 | cursor = 23 | Object.selectionForField "String" "cursor" [] (Decode.string) 24 | 25 | 26 | {-| The item at the end of the edge. 27 | -} 28 | node : SelectionSet decodesTo GithubNoFormat.Object.PullRequestCommit 29 | -> SelectionSet (Maybe decodesTo) GithubNoFormat.Object.PullRequestCommitEdge 30 | node object____ = 31 | Object.selectionForCompositeField "node" [] (object____) (Basics.identity >> Decode.nullable) 32 | -------------------------------------------------------------------------------- /ete_tests/no-format-example/GithubNoFormat/Object/PullRequestEdge.elm: -------------------------------------------------------------------------------- 1 | -- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql 2 | -- https://github.com/dillonkearns/elm-graphql 3 | module GithubNoFormat.Object.PullRequestEdge exposing (..) 4 | 5 | import Graphql.Internal.Builder.Argument as Argument exposing (Argument) 6 | import Graphql.Internal.Builder.Object as Object 7 | import Graphql.SelectionSet exposing (SelectionSet) 8 | import Graphql.OptionalArgument exposing (OptionalArgument(..)) 9 | import Graphql.Operation exposing (RootMutation, RootQuery, RootSubscription) 10 | import GithubNoFormat.Object 11 | import GithubNoFormat.Interface 12 | import GithubNoFormat.Union 13 | import GithubNoFormat.Scalar 14 | import GithubNoFormat.InputObject 15 | import GithubNoFormat.ScalarCodecs 16 | import Json.Decode as Decode 17 | import Graphql.Internal.Encode as Encode exposing (Value) 18 | 19 | {-| A cursor for use in pagination. 20 | -} 21 | cursor : SelectionSet String GithubNoFormat.Object.PullRequestEdge 22 | cursor = 23 | Object.selectionForField "String" "cursor" [] (Decode.string) 24 | 25 | 26 | {-| The item at the end of the edge. 27 | -} 28 | node : SelectionSet decodesTo GithubNoFormat.Object.PullRequest 29 | -> SelectionSet (Maybe decodesTo) GithubNoFormat.Object.PullRequestEdge 30 | node object____ = 31 | Object.selectionForCompositeField "node" [] (object____) (Basics.identity >> Decode.nullable) 32 | -------------------------------------------------------------------------------- /ete_tests/no-format-example/GithubNoFormat/Object/PullRequestReviewEdge.elm: -------------------------------------------------------------------------------- 1 | -- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql 2 | -- https://github.com/dillonkearns/elm-graphql 3 | module GithubNoFormat.Object.PullRequestReviewEdge exposing (..) 4 | 5 | import Graphql.Internal.Builder.Argument as Argument exposing (Argument) 6 | import Graphql.Internal.Builder.Object as Object 7 | import Graphql.SelectionSet exposing (SelectionSet) 8 | import Graphql.OptionalArgument exposing (OptionalArgument(..)) 9 | import Graphql.Operation exposing (RootMutation, RootQuery, RootSubscription) 10 | import GithubNoFormat.Object 11 | import GithubNoFormat.Interface 12 | import GithubNoFormat.Union 13 | import GithubNoFormat.Scalar 14 | import GithubNoFormat.InputObject 15 | import GithubNoFormat.ScalarCodecs 16 | import Json.Decode as Decode 17 | import Graphql.Internal.Encode as Encode exposing (Value) 18 | 19 | {-| A cursor for use in pagination. 20 | -} 21 | cursor : SelectionSet String GithubNoFormat.Object.PullRequestReviewEdge 22 | cursor = 23 | Object.selectionForField "String" "cursor" [] (Decode.string) 24 | 25 | 26 | {-| The item at the end of the edge. 27 | -} 28 | node : SelectionSet decodesTo GithubNoFormat.Object.PullRequestReview 29 | -> SelectionSet (Maybe decodesTo) GithubNoFormat.Object.PullRequestReviewEdge 30 | node object____ = 31 | Object.selectionForCompositeField "node" [] (object____) (Basics.identity >> Decode.nullable) 32 | -------------------------------------------------------------------------------- /ete_tests/no-format-example/GithubNoFormat/Object/PullRequestTimelineItemEdge.elm: -------------------------------------------------------------------------------- 1 | -- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql 2 | -- https://github.com/dillonkearns/elm-graphql 3 | module GithubNoFormat.Object.PullRequestTimelineItemEdge exposing (..) 4 | 5 | import Graphql.Internal.Builder.Argument as Argument exposing (Argument) 6 | import Graphql.Internal.Builder.Object as Object 7 | import Graphql.SelectionSet exposing (SelectionSet) 8 | import Graphql.OptionalArgument exposing (OptionalArgument(..)) 9 | import Graphql.Operation exposing (RootMutation, RootQuery, RootSubscription) 10 | import GithubNoFormat.Object 11 | import GithubNoFormat.Interface 12 | import GithubNoFormat.Union 13 | import GithubNoFormat.Scalar 14 | import GithubNoFormat.InputObject 15 | import GithubNoFormat.ScalarCodecs 16 | import Json.Decode as Decode 17 | import Graphql.Internal.Encode as Encode exposing (Value) 18 | 19 | {-| A cursor for use in pagination. 20 | -} 21 | cursor : SelectionSet String GithubNoFormat.Object.PullRequestTimelineItemEdge 22 | cursor = 23 | Object.selectionForField "String" "cursor" [] (Decode.string) 24 | 25 | 26 | {-| The item at the end of the edge. 27 | -} 28 | node : SelectionSet decodesTo GithubNoFormat.Union.PullRequestTimelineItem 29 | -> SelectionSet (Maybe decodesTo) GithubNoFormat.Object.PullRequestTimelineItemEdge 30 | node object____ = 31 | Object.selectionForCompositeField "node" [] (object____) (Basics.identity >> Decode.nullable) 32 | -------------------------------------------------------------------------------- /ete_tests/no-format-example/GithubNoFormat/Object/PushAllowanceEdge.elm: -------------------------------------------------------------------------------- 1 | -- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql 2 | -- https://github.com/dillonkearns/elm-graphql 3 | module GithubNoFormat.Object.PushAllowanceEdge exposing (..) 4 | 5 | import Graphql.Internal.Builder.Argument as Argument exposing (Argument) 6 | import Graphql.Internal.Builder.Object as Object 7 | import Graphql.SelectionSet exposing (SelectionSet) 8 | import Graphql.OptionalArgument exposing (OptionalArgument(..)) 9 | import Graphql.Operation exposing (RootMutation, RootQuery, RootSubscription) 10 | import GithubNoFormat.Object 11 | import GithubNoFormat.Interface 12 | import GithubNoFormat.Union 13 | import GithubNoFormat.Scalar 14 | import GithubNoFormat.InputObject 15 | import GithubNoFormat.ScalarCodecs 16 | import Json.Decode as Decode 17 | import Graphql.Internal.Encode as Encode exposing (Value) 18 | 19 | {-| A cursor for use in pagination. 20 | -} 21 | cursor : SelectionSet String GithubNoFormat.Object.PushAllowanceEdge 22 | cursor = 23 | Object.selectionForField "String" "cursor" [] (Decode.string) 24 | 25 | 26 | {-| The item at the end of the edge. 27 | -} 28 | node : SelectionSet decodesTo GithubNoFormat.Object.PushAllowance 29 | -> SelectionSet (Maybe decodesTo) GithubNoFormat.Object.PushAllowanceEdge 30 | node object____ = 31 | Object.selectionForCompositeField "node" [] (object____) (Basics.identity >> Decode.nullable) 32 | -------------------------------------------------------------------------------- /ete_tests/no-format-example/GithubNoFormat/Object/ReactionEdge.elm: -------------------------------------------------------------------------------- 1 | -- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql 2 | -- https://github.com/dillonkearns/elm-graphql 3 | module GithubNoFormat.Object.ReactionEdge exposing (..) 4 | 5 | import Graphql.Internal.Builder.Argument as Argument exposing (Argument) 6 | import Graphql.Internal.Builder.Object as Object 7 | import Graphql.SelectionSet exposing (SelectionSet) 8 | import Graphql.OptionalArgument exposing (OptionalArgument(..)) 9 | import Graphql.Operation exposing (RootMutation, RootQuery, RootSubscription) 10 | import GithubNoFormat.Object 11 | import GithubNoFormat.Interface 12 | import GithubNoFormat.Union 13 | import GithubNoFormat.Scalar 14 | import GithubNoFormat.InputObject 15 | import GithubNoFormat.ScalarCodecs 16 | import Json.Decode as Decode 17 | import Graphql.Internal.Encode as Encode exposing (Value) 18 | 19 | {-| A cursor for use in pagination. 20 | -} 21 | cursor : SelectionSet String GithubNoFormat.Object.ReactionEdge 22 | cursor = 23 | Object.selectionForField "String" "cursor" [] (Decode.string) 24 | 25 | 26 | {-| The item at the end of the edge. 27 | -} 28 | node : SelectionSet decodesTo GithubNoFormat.Object.Reaction 29 | -> SelectionSet (Maybe decodesTo) GithubNoFormat.Object.ReactionEdge 30 | node object____ = 31 | Object.selectionForCompositeField "node" [] (object____) (Basics.identity >> Decode.nullable) 32 | -------------------------------------------------------------------------------- /ete_tests/no-format-example/GithubNoFormat/Object/RefEdge.elm: -------------------------------------------------------------------------------- 1 | -- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql 2 | -- https://github.com/dillonkearns/elm-graphql 3 | module GithubNoFormat.Object.RefEdge exposing (..) 4 | 5 | import Graphql.Internal.Builder.Argument as Argument exposing (Argument) 6 | import Graphql.Internal.Builder.Object as Object 7 | import Graphql.SelectionSet exposing (SelectionSet) 8 | import Graphql.OptionalArgument exposing (OptionalArgument(..)) 9 | import Graphql.Operation exposing (RootMutation, RootQuery, RootSubscription) 10 | import GithubNoFormat.Object 11 | import GithubNoFormat.Interface 12 | import GithubNoFormat.Union 13 | import GithubNoFormat.Scalar 14 | import GithubNoFormat.InputObject 15 | import GithubNoFormat.ScalarCodecs 16 | import Json.Decode as Decode 17 | import Graphql.Internal.Encode as Encode exposing (Value) 18 | 19 | {-| A cursor for use in pagination. 20 | -} 21 | cursor : SelectionSet String GithubNoFormat.Object.RefEdge 22 | cursor = 23 | Object.selectionForField "String" "cursor" [] (Decode.string) 24 | 25 | 26 | {-| The item at the end of the edge. 27 | -} 28 | node : SelectionSet decodesTo GithubNoFormat.Object.Ref 29 | -> SelectionSet (Maybe decodesTo) GithubNoFormat.Object.RefEdge 30 | node object____ = 31 | Object.selectionForCompositeField "node" [] (object____) (Basics.identity >> Decode.nullable) 32 | -------------------------------------------------------------------------------- /ete_tests/no-format-example/GithubNoFormat/Object/ReleaseAssetEdge.elm: -------------------------------------------------------------------------------- 1 | -- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql 2 | -- https://github.com/dillonkearns/elm-graphql 3 | module GithubNoFormat.Object.ReleaseAssetEdge exposing (..) 4 | 5 | import Graphql.Internal.Builder.Argument as Argument exposing (Argument) 6 | import Graphql.Internal.Builder.Object as Object 7 | import Graphql.SelectionSet exposing (SelectionSet) 8 | import Graphql.OptionalArgument exposing (OptionalArgument(..)) 9 | import Graphql.Operation exposing (RootMutation, RootQuery, RootSubscription) 10 | import GithubNoFormat.Object 11 | import GithubNoFormat.Interface 12 | import GithubNoFormat.Union 13 | import GithubNoFormat.Scalar 14 | import GithubNoFormat.InputObject 15 | import GithubNoFormat.ScalarCodecs 16 | import Json.Decode as Decode 17 | import Graphql.Internal.Encode as Encode exposing (Value) 18 | 19 | {-| A cursor for use in pagination. 20 | -} 21 | cursor : SelectionSet String GithubNoFormat.Object.ReleaseAssetEdge 22 | cursor = 23 | Object.selectionForField "String" "cursor" [] (Decode.string) 24 | 25 | 26 | {-| The item at the end of the edge. 27 | -} 28 | node : SelectionSet decodesTo GithubNoFormat.Object.ReleaseAsset 29 | -> SelectionSet (Maybe decodesTo) GithubNoFormat.Object.ReleaseAssetEdge 30 | node object____ = 31 | Object.selectionForCompositeField "node" [] (object____) (Basics.identity >> Decode.nullable) 32 | -------------------------------------------------------------------------------- /ete_tests/no-format-example/GithubNoFormat/Object/ReleaseEdge.elm: -------------------------------------------------------------------------------- 1 | -- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql 2 | -- https://github.com/dillonkearns/elm-graphql 3 | module GithubNoFormat.Object.ReleaseEdge exposing (..) 4 | 5 | import Graphql.Internal.Builder.Argument as Argument exposing (Argument) 6 | import Graphql.Internal.Builder.Object as Object 7 | import Graphql.SelectionSet exposing (SelectionSet) 8 | import Graphql.OptionalArgument exposing (OptionalArgument(..)) 9 | import Graphql.Operation exposing (RootMutation, RootQuery, RootSubscription) 10 | import GithubNoFormat.Object 11 | import GithubNoFormat.Interface 12 | import GithubNoFormat.Union 13 | import GithubNoFormat.Scalar 14 | import GithubNoFormat.InputObject 15 | import GithubNoFormat.ScalarCodecs 16 | import Json.Decode as Decode 17 | import Graphql.Internal.Encode as Encode exposing (Value) 18 | 19 | {-| A cursor for use in pagination. 20 | -} 21 | cursor : SelectionSet String GithubNoFormat.Object.ReleaseEdge 22 | cursor = 23 | Object.selectionForField "String" "cursor" [] (Decode.string) 24 | 25 | 26 | {-| The item at the end of the edge. 27 | -} 28 | node : SelectionSet decodesTo GithubNoFormat.Object.Release 29 | -> SelectionSet (Maybe decodesTo) GithubNoFormat.Object.ReleaseEdge 30 | node object____ = 31 | Object.selectionForCompositeField "node" [] (object____) (Basics.identity >> Decode.nullable) 32 | -------------------------------------------------------------------------------- /ete_tests/no-format-example/GithubNoFormat/Object/RepositoryEdge.elm: -------------------------------------------------------------------------------- 1 | -- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql 2 | -- https://github.com/dillonkearns/elm-graphql 3 | module GithubNoFormat.Object.RepositoryEdge exposing (..) 4 | 5 | import Graphql.Internal.Builder.Argument as Argument exposing (Argument) 6 | import Graphql.Internal.Builder.Object as Object 7 | import Graphql.SelectionSet exposing (SelectionSet) 8 | import Graphql.OptionalArgument exposing (OptionalArgument(..)) 9 | import Graphql.Operation exposing (RootMutation, RootQuery, RootSubscription) 10 | import GithubNoFormat.Object 11 | import GithubNoFormat.Interface 12 | import GithubNoFormat.Union 13 | import GithubNoFormat.Scalar 14 | import GithubNoFormat.InputObject 15 | import GithubNoFormat.ScalarCodecs 16 | import Json.Decode as Decode 17 | import Graphql.Internal.Encode as Encode exposing (Value) 18 | 19 | {-| A cursor for use in pagination. 20 | -} 21 | cursor : SelectionSet String GithubNoFormat.Object.RepositoryEdge 22 | cursor = 23 | Object.selectionForField "String" "cursor" [] (Decode.string) 24 | 25 | 26 | {-| The item at the end of the edge. 27 | -} 28 | node : SelectionSet decodesTo GithubNoFormat.Object.Repository 29 | -> SelectionSet (Maybe decodesTo) GithubNoFormat.Object.RepositoryEdge 30 | node object____ = 31 | Object.selectionForCompositeField "node" [] (object____) (Basics.identity >> Decode.nullable) 32 | -------------------------------------------------------------------------------- /ete_tests/no-format-example/GithubNoFormat/Object/RepositoryTopicEdge.elm: -------------------------------------------------------------------------------- 1 | -- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql 2 | -- https://github.com/dillonkearns/elm-graphql 3 | module GithubNoFormat.Object.RepositoryTopicEdge exposing (..) 4 | 5 | import Graphql.Internal.Builder.Argument as Argument exposing (Argument) 6 | import Graphql.Internal.Builder.Object as Object 7 | import Graphql.SelectionSet exposing (SelectionSet) 8 | import Graphql.OptionalArgument exposing (OptionalArgument(..)) 9 | import Graphql.Operation exposing (RootMutation, RootQuery, RootSubscription) 10 | import GithubNoFormat.Object 11 | import GithubNoFormat.Interface 12 | import GithubNoFormat.Union 13 | import GithubNoFormat.Scalar 14 | import GithubNoFormat.InputObject 15 | import GithubNoFormat.ScalarCodecs 16 | import Json.Decode as Decode 17 | import Graphql.Internal.Encode as Encode exposing (Value) 18 | 19 | {-| A cursor for use in pagination. 20 | -} 21 | cursor : SelectionSet String GithubNoFormat.Object.RepositoryTopicEdge 22 | cursor = 23 | Object.selectionForField "String" "cursor" [] (Decode.string) 24 | 25 | 26 | {-| The item at the end of the edge. 27 | -} 28 | node : SelectionSet decodesTo GithubNoFormat.Object.RepositoryTopic 29 | -> SelectionSet (Maybe decodesTo) GithubNoFormat.Object.RepositoryTopicEdge 30 | node object____ = 31 | Object.selectionForCompositeField "node" [] (object____) (Basics.identity >> Decode.nullable) 32 | -------------------------------------------------------------------------------- /ete_tests/no-format-example/GithubNoFormat/Object/ReviewRequestEdge.elm: -------------------------------------------------------------------------------- 1 | -- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql 2 | -- https://github.com/dillonkearns/elm-graphql 3 | module GithubNoFormat.Object.ReviewRequestEdge exposing (..) 4 | 5 | import Graphql.Internal.Builder.Argument as Argument exposing (Argument) 6 | import Graphql.Internal.Builder.Object as Object 7 | import Graphql.SelectionSet exposing (SelectionSet) 8 | import Graphql.OptionalArgument exposing (OptionalArgument(..)) 9 | import Graphql.Operation exposing (RootMutation, RootQuery, RootSubscription) 10 | import GithubNoFormat.Object 11 | import GithubNoFormat.Interface 12 | import GithubNoFormat.Union 13 | import GithubNoFormat.Scalar 14 | import GithubNoFormat.InputObject 15 | import GithubNoFormat.ScalarCodecs 16 | import Json.Decode as Decode 17 | import Graphql.Internal.Encode as Encode exposing (Value) 18 | 19 | {-| A cursor for use in pagination. 20 | -} 21 | cursor : SelectionSet String GithubNoFormat.Object.ReviewRequestEdge 22 | cursor = 23 | Object.selectionForField "String" "cursor" [] (Decode.string) 24 | 25 | 26 | {-| The item at the end of the edge. 27 | -} 28 | node : SelectionSet decodesTo GithubNoFormat.Object.ReviewRequest 29 | -> SelectionSet (Maybe decodesTo) GithubNoFormat.Object.ReviewRequestEdge 30 | node object____ = 31 | Object.selectionForCompositeField "node" [] (object____) (Basics.identity >> Decode.nullable) 32 | -------------------------------------------------------------------------------- /ete_tests/no-format-example/GithubNoFormat/Object/TeamEdge.elm: -------------------------------------------------------------------------------- 1 | -- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql 2 | -- https://github.com/dillonkearns/elm-graphql 3 | module GithubNoFormat.Object.TeamEdge exposing (..) 4 | 5 | import Graphql.Internal.Builder.Argument as Argument exposing (Argument) 6 | import Graphql.Internal.Builder.Object as Object 7 | import Graphql.SelectionSet exposing (SelectionSet) 8 | import Graphql.OptionalArgument exposing (OptionalArgument(..)) 9 | import Graphql.Operation exposing (RootMutation, RootQuery, RootSubscription) 10 | import GithubNoFormat.Object 11 | import GithubNoFormat.Interface 12 | import GithubNoFormat.Union 13 | import GithubNoFormat.Scalar 14 | import GithubNoFormat.InputObject 15 | import GithubNoFormat.ScalarCodecs 16 | import Json.Decode as Decode 17 | import Graphql.Internal.Encode as Encode exposing (Value) 18 | 19 | {-| A cursor for use in pagination. 20 | -} 21 | cursor : SelectionSet String GithubNoFormat.Object.TeamEdge 22 | cursor = 23 | Object.selectionForField "String" "cursor" [] (Decode.string) 24 | 25 | 26 | {-| The item at the end of the edge. 27 | -} 28 | node : SelectionSet decodesTo GithubNoFormat.Object.Team 29 | -> SelectionSet (Maybe decodesTo) GithubNoFormat.Object.TeamEdge 30 | node object____ = 31 | Object.selectionForCompositeField "node" [] (object____) (Basics.identity >> Decode.nullable) 32 | -------------------------------------------------------------------------------- /ete_tests/no-format-example/GithubNoFormat/Object/TopicEdge.elm: -------------------------------------------------------------------------------- 1 | -- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql 2 | -- https://github.com/dillonkearns/elm-graphql 3 | module GithubNoFormat.Object.TopicEdge exposing (..) 4 | 5 | import Graphql.Internal.Builder.Argument as Argument exposing (Argument) 6 | import Graphql.Internal.Builder.Object as Object 7 | import Graphql.SelectionSet exposing (SelectionSet) 8 | import Graphql.OptionalArgument exposing (OptionalArgument(..)) 9 | import Graphql.Operation exposing (RootMutation, RootQuery, RootSubscription) 10 | import GithubNoFormat.Object 11 | import GithubNoFormat.Interface 12 | import GithubNoFormat.Union 13 | import GithubNoFormat.Scalar 14 | import GithubNoFormat.InputObject 15 | import GithubNoFormat.ScalarCodecs 16 | import Json.Decode as Decode 17 | import Graphql.Internal.Encode as Encode exposing (Value) 18 | 19 | {-| A cursor for use in pagination. 20 | -} 21 | cursor : SelectionSet String GithubNoFormat.Object.TopicEdge 22 | cursor = 23 | Object.selectionForField "String" "cursor" [] (Decode.string) 24 | 25 | 26 | {-| The item at the end of the edge. 27 | -} 28 | node : SelectionSet decodesTo GithubNoFormat.Object.Topic 29 | -> SelectionSet (Maybe decodesTo) GithubNoFormat.Object.TopicEdge 30 | node object____ = 31 | Object.selectionForCompositeField "node" [] (object____) (Basics.identity >> Decode.nullable) 32 | -------------------------------------------------------------------------------- /ete_tests/no-format-example/GithubNoFormat/Object/UserContentEditEdge.elm: -------------------------------------------------------------------------------- 1 | -- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql 2 | -- https://github.com/dillonkearns/elm-graphql 3 | module GithubNoFormat.Object.UserContentEditEdge exposing (..) 4 | 5 | import Graphql.Internal.Builder.Argument as Argument exposing (Argument) 6 | import Graphql.Internal.Builder.Object as Object 7 | import Graphql.SelectionSet exposing (SelectionSet) 8 | import Graphql.OptionalArgument exposing (OptionalArgument(..)) 9 | import Graphql.Operation exposing (RootMutation, RootQuery, RootSubscription) 10 | import GithubNoFormat.Object 11 | import GithubNoFormat.Interface 12 | import GithubNoFormat.Union 13 | import GithubNoFormat.Scalar 14 | import GithubNoFormat.InputObject 15 | import GithubNoFormat.ScalarCodecs 16 | import Json.Decode as Decode 17 | import Graphql.Internal.Encode as Encode exposing (Value) 18 | 19 | {-| A cursor for use in pagination. 20 | -} 21 | cursor : SelectionSet String GithubNoFormat.Object.UserContentEditEdge 22 | cursor = 23 | Object.selectionForField "String" "cursor" [] (Decode.string) 24 | 25 | 26 | {-| The item at the end of the edge. 27 | -} 28 | node : SelectionSet decodesTo GithubNoFormat.Object.UserContentEdit 29 | -> SelectionSet (Maybe decodesTo) GithubNoFormat.Object.UserContentEditEdge 30 | node object____ = 31 | Object.selectionForCompositeField "node" [] (object____) (Basics.identity >> Decode.nullable) 32 | -------------------------------------------------------------------------------- /ete_tests/no-format-example/GithubNoFormat/Object/UserEdge.elm: -------------------------------------------------------------------------------- 1 | -- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql 2 | -- https://github.com/dillonkearns/elm-graphql 3 | module GithubNoFormat.Object.UserEdge exposing (..) 4 | 5 | import Graphql.Internal.Builder.Argument as Argument exposing (Argument) 6 | import Graphql.Internal.Builder.Object as Object 7 | import Graphql.SelectionSet exposing (SelectionSet) 8 | import Graphql.OptionalArgument exposing (OptionalArgument(..)) 9 | import Graphql.Operation exposing (RootMutation, RootQuery, RootSubscription) 10 | import GithubNoFormat.Object 11 | import GithubNoFormat.Interface 12 | import GithubNoFormat.Union 13 | import GithubNoFormat.Scalar 14 | import GithubNoFormat.InputObject 15 | import GithubNoFormat.ScalarCodecs 16 | import Json.Decode as Decode 17 | import Graphql.Internal.Encode as Encode exposing (Value) 18 | 19 | {-| A cursor for use in pagination. 20 | -} 21 | cursor : SelectionSet String GithubNoFormat.Object.UserEdge 22 | cursor = 23 | Object.selectionForField "String" "cursor" [] (Decode.string) 24 | 25 | 26 | {-| The item at the end of the edge. 27 | -} 28 | node : SelectionSet decodesTo GithubNoFormat.Object.User 29 | -> SelectionSet (Maybe decodesTo) GithubNoFormat.Object.UserEdge 30 | node object____ = 31 | Object.selectionForCompositeField "node" [] (object____) (Basics.identity >> Decode.nullable) 32 | -------------------------------------------------------------------------------- /ete_tests/no-format-example/GithubNoFormat/Union.elm: -------------------------------------------------------------------------------- 1 | -- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql 2 | -- https://github.com/dillonkearns/elm-graphql 3 | module GithubNoFormat.Union exposing (..) 4 | 5 | 6 | type Closer 7 | = Closer 8 | 9 | 10 | type CollectionItemContent 11 | = CollectionItemContent 12 | 13 | 14 | type IssueOrPullRequest 15 | = IssueOrPullRequest 16 | 17 | 18 | type IssueTimelineItem 19 | = IssueTimelineItem 20 | 21 | 22 | type MilestoneItem 23 | = MilestoneItem 24 | 25 | 26 | type ProjectCardItem 27 | = ProjectCardItem 28 | 29 | 30 | type PullRequestTimelineItem 31 | = PullRequestTimelineItem 32 | 33 | 34 | type PushAllowanceActor 35 | = PushAllowanceActor 36 | 37 | 38 | type ReferencedSubject 39 | = ReferencedSubject 40 | 41 | 42 | type RenamedTitleSubject 43 | = RenamedTitleSubject 44 | 45 | 46 | type RequestedReviewer 47 | = RequestedReviewer 48 | 49 | 50 | type ReviewDismissalAllowanceActor 51 | = ReviewDismissalAllowanceActor 52 | 53 | 54 | type SearchResultItem 55 | = SearchResultItem 56 | -------------------------------------------------------------------------------- /ete_tests/no-format-example/GithubNoFormat/VerifyScalarCodecs.elm: -------------------------------------------------------------------------------- 1 | -- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql 2 | -- https://github.com/dillonkearns/elm-graphql 3 | module GithubNoFormat.VerifyScalarCodecs exposing (..) 4 | 5 | 6 | placeholder : String 7 | placeholder = 8 | "" 9 | -------------------------------------------------------------------------------- /ete_tests/src/EdgeCases/Interface.elm: -------------------------------------------------------------------------------- 1 | -- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql 2 | -- https://github.com/dillonkearns/elm-graphql 3 | 4 | 5 | module EdgeCases.Interface exposing (..) 6 | 7 | 8 | type Character 9 | = Character 10 | 11 | 12 | type Species 13 | = Species 14 | -------------------------------------------------------------------------------- /ete_tests/src/EdgeCases/Object.elm: -------------------------------------------------------------------------------- 1 | -- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql 2 | -- https://github.com/dillonkearns/elm-graphql 3 | 4 | 5 | module EdgeCases.Object exposing (..) 6 | 7 | 8 | type Human 9 | = Human 10 | -------------------------------------------------------------------------------- /ete_tests/src/EdgeCases/Object/Human.elm: -------------------------------------------------------------------------------- 1 | -- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql 2 | -- https://github.com/dillonkearns/elm-graphql 3 | 4 | 5 | module EdgeCases.Object.Human exposing (..) 6 | 7 | import EdgeCases.InputObject 8 | import EdgeCases.Interface 9 | import EdgeCases.Object 10 | import EdgeCases.Scalar 11 | import EdgeCases.ScalarCodecs 12 | import EdgeCases.Union 13 | import Graphql.Internal.Builder.Argument as Argument exposing (Argument) 14 | import Graphql.Internal.Builder.Object as Object 15 | import Graphql.Internal.Encode as Encode exposing (Value) 16 | import Graphql.Operation exposing (RootMutation, RootQuery, RootSubscription) 17 | import Graphql.OptionalArgument exposing (OptionalArgument(..)) 18 | import Graphql.SelectionSet exposing (SelectionSet) 19 | import Json.Decode as Decode 20 | 21 | 22 | name : SelectionSet String EdgeCases.Object.Human 23 | name = 24 | Object.selectionForField "String" "name" [] Decode.string 25 | 26 | 27 | numberOfHearts : SelectionSet Int EdgeCases.Object.Human 28 | numberOfHearts = 29 | Object.selectionForField "Int" "numberOfHearts" [] Decode.int 30 | 31 | 32 | ogTerrain : SelectionSet Bool EdgeCases.Object.Human 33 | ogTerrain = 34 | Object.selectionForField "Bool" "ogTerrain" [] Decode.bool 35 | -------------------------------------------------------------------------------- /ete_tests/src/EdgeCases/Query.elm: -------------------------------------------------------------------------------- 1 | -- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql 2 | -- https://github.com/dillonkearns/elm-graphql 3 | 4 | 5 | module EdgeCases.Query exposing (..) 6 | 7 | import EdgeCases.InputObject 8 | import EdgeCases.Interface 9 | import EdgeCases.Object 10 | import EdgeCases.Scalar 11 | import EdgeCases.ScalarCodecs 12 | import EdgeCases.Union 13 | import Graphql.Internal.Builder.Argument as Argument exposing (Argument) 14 | import Graphql.Internal.Builder.Object as Object 15 | import Graphql.Internal.Encode as Encode exposing (Value) 16 | import Graphql.Operation exposing (RootMutation, RootQuery, RootSubscription) 17 | import Graphql.OptionalArgument exposing (OptionalArgument(..)) 18 | import Graphql.SelectionSet exposing (SelectionSet) 19 | import Json.Decode as Decode exposing (Decoder) 20 | 21 | 22 | type alias HelloRequiredArguments = 23 | { name : String } 24 | 25 | 26 | hello : 27 | HelloRequiredArguments 28 | -> SelectionSet String RootQuery 29 | hello requiredArgs____ = 30 | Object.selectionForField "String" "hello" [ Argument.required "name" requiredArgs____.name Encode.string ] Decode.string 31 | 32 | 33 | characters : 34 | SelectionSet decodesTo EdgeCases.Interface.Character 35 | -> SelectionSet (List decodesTo) RootQuery 36 | characters object____ = 37 | Object.selectionForCompositeField "characters" [] object____ (Basics.identity >> Decode.list) 38 | -------------------------------------------------------------------------------- /ete_tests/src/EdgeCases/Scalar.elm: -------------------------------------------------------------------------------- 1 | -- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql 2 | -- https://github.com/dillonkearns/elm-graphql 3 | 4 | 5 | module EdgeCases.Scalar exposing (..) 6 | 7 | 8 | placeholder : String 9 | placeholder = 10 | "" 11 | -------------------------------------------------------------------------------- /ete_tests/src/EdgeCases/ScalarCodecs.elm: -------------------------------------------------------------------------------- 1 | -- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql 2 | -- https://github.com/dillonkearns/elm-graphql 3 | 4 | 5 | module EdgeCases.ScalarCodecs exposing (..) 6 | 7 | 8 | placeholder : String 9 | placeholder = 10 | "" 11 | -------------------------------------------------------------------------------- /ete_tests/src/EdgeCases/Union.elm: -------------------------------------------------------------------------------- 1 | -- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql 2 | -- https://github.com/dillonkearns/elm-graphql 3 | 4 | 5 | module EdgeCases.Union exposing (..) 6 | 7 | 8 | placeholder : String 9 | placeholder = 10 | "" 11 | -------------------------------------------------------------------------------- /ete_tests/src/EdgeCases/VerifyScalarCodecs.elm: -------------------------------------------------------------------------------- 1 | -- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql 2 | -- https://github.com/dillonkearns/elm-graphql 3 | 4 | 5 | module EdgeCases.VerifyScalarCodecs exposing (..) 6 | 7 | 8 | placeholder : String 9 | placeholder = 10 | "" 11 | -------------------------------------------------------------------------------- /ete_tests/src/Normalize/Interface.elm: -------------------------------------------------------------------------------- 1 | -- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql 2 | -- https://github.com/dillonkearns/elm-graphql 3 | 4 | 5 | module Normalize.Interface exposing (..) 6 | 7 | 8 | type Character 9 | = Character 10 | -------------------------------------------------------------------------------- /ete_tests/src/Normalize/Object.elm: -------------------------------------------------------------------------------- 1 | -- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql 2 | -- https://github.com/dillonkearns/elm-graphql 3 | 4 | 5 | module Normalize.Object exposing (..) 6 | 7 | 8 | type Cat 9 | = Cat 10 | 11 | 12 | type Dog 13 | = Dog 14 | 15 | 16 | type Droid 17 | = Droid 18 | 19 | 20 | type Human_ 21 | = Human_ 22 | 23 | 24 | type ListId 25 | = ListId 26 | 27 | 28 | type MaybeId 29 | = MaybeId 30 | -------------------------------------------------------------------------------- /ete_tests/src/Normalize/Object/Cat.elm: -------------------------------------------------------------------------------- 1 | -- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql 2 | -- https://github.com/dillonkearns/elm-graphql 3 | 4 | 5 | module Normalize.Object.Cat exposing (..) 6 | 7 | import Graphql.Internal.Builder.Argument as Argument exposing (Argument) 8 | import Graphql.Internal.Builder.Object as Object 9 | import Graphql.Internal.Encode as Encode exposing (Value) 10 | import Graphql.Operation exposing (RootMutation, RootQuery, RootSubscription) 11 | import Graphql.OptionalArgument exposing (OptionalArgument(..)) 12 | import Graphql.SelectionSet exposing (SelectionSet) 13 | import Json.Decode as Decode 14 | import Normalize.InputObject 15 | import Normalize.Interface 16 | import Normalize.Object 17 | import Normalize.Scalar 18 | import Normalize.ScalarCodecs 19 | import Normalize.Union 20 | 21 | 22 | id : SelectionSet Normalize.ScalarCodecs.CatId Normalize.Object.Cat 23 | id = 24 | Object.selectionForField "ScalarCodecs.CatId" "id" [] (Normalize.ScalarCodecs.codecs |> Normalize.Scalar.unwrapCodecs |> .codecCatId |> .decoder) 25 | -------------------------------------------------------------------------------- /ete_tests/src/Normalize/Object/Dog.elm: -------------------------------------------------------------------------------- 1 | -- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql 2 | -- https://github.com/dillonkearns/elm-graphql 3 | 4 | 5 | module Normalize.Object.Dog exposing (..) 6 | 7 | import Graphql.Internal.Builder.Argument as Argument exposing (Argument) 8 | import Graphql.Internal.Builder.Object as Object 9 | import Graphql.Internal.Encode as Encode exposing (Value) 10 | import Graphql.Operation exposing (RootMutation, RootQuery, RootSubscription) 11 | import Graphql.OptionalArgument exposing (OptionalArgument(..)) 12 | import Graphql.SelectionSet exposing (SelectionSet) 13 | import Json.Decode as Decode 14 | import Normalize.InputObject 15 | import Normalize.Interface 16 | import Normalize.Object 17 | import Normalize.Scalar 18 | import Normalize.ScalarCodecs 19 | import Normalize.Union 20 | 21 | 22 | id : SelectionSet Normalize.ScalarCodecs.DogId Normalize.Object.Dog 23 | id = 24 | Object.selectionForField "ScalarCodecs.DogId" "id" [] (Normalize.ScalarCodecs.codecs |> Normalize.Scalar.unwrapCodecs |> .codecDogId |> .decoder) 25 | -------------------------------------------------------------------------------- /ete_tests/src/Normalize/Object/ListId.elm: -------------------------------------------------------------------------------- 1 | -- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql 2 | -- https://github.com/dillonkearns/elm-graphql 3 | 4 | 5 | module Normalize.Object.ListId exposing (..) 6 | 7 | import Graphql.Internal.Builder.Argument as Argument exposing (Argument) 8 | import Graphql.Internal.Builder.Object as Object 9 | import Graphql.Internal.Encode as Encode exposing (Value) 10 | import Graphql.Operation exposing (RootMutation, RootQuery, RootSubscription) 11 | import Graphql.OptionalArgument exposing (OptionalArgument(..)) 12 | import Graphql.SelectionSet exposing (SelectionSet) 13 | import Json.Decode as Decode 14 | import Normalize.InputObject 15 | import Normalize.Interface 16 | import Normalize.Object 17 | import Normalize.Scalar 18 | import Normalize.ScalarCodecs 19 | import Normalize.Union 20 | 21 | 22 | id : SelectionSet (Maybe (List (Maybe Normalize.ScalarCodecs.DogId))) Normalize.Object.ListId 23 | id = 24 | Object.selectionForField "(Maybe (List (Maybe ScalarCodecs.DogId)))" "id" [] (Normalize.ScalarCodecs.codecs |> Normalize.Scalar.unwrapCodecs |> .codecDogId |> .decoder |> Decode.nullable |> Decode.list |> Decode.nullable) 25 | -------------------------------------------------------------------------------- /ete_tests/src/Normalize/Object/MaybeId.elm: -------------------------------------------------------------------------------- 1 | -- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql 2 | -- https://github.com/dillonkearns/elm-graphql 3 | 4 | 5 | module Normalize.Object.MaybeId exposing (..) 6 | 7 | import Graphql.Internal.Builder.Argument as Argument exposing (Argument) 8 | import Graphql.Internal.Builder.Object as Object 9 | import Graphql.Internal.Encode as Encode exposing (Value) 10 | import Graphql.Operation exposing (RootMutation, RootQuery, RootSubscription) 11 | import Graphql.OptionalArgument exposing (OptionalArgument(..)) 12 | import Graphql.SelectionSet exposing (SelectionSet) 13 | import Json.Decode as Decode 14 | import Normalize.InputObject 15 | import Normalize.Interface 16 | import Normalize.Object 17 | import Normalize.Scalar 18 | import Normalize.ScalarCodecs 19 | import Normalize.Union 20 | 21 | 22 | id : SelectionSet (Maybe Normalize.ScalarCodecs.DogId) Normalize.Object.MaybeId 23 | id = 24 | Object.selectionForField "(Maybe ScalarCodecs.DogId)" "id" [] (Normalize.ScalarCodecs.codecs |> Normalize.Scalar.unwrapCodecs |> .codecDogId |> .decoder |> Decode.nullable) 25 | -------------------------------------------------------------------------------- /ete_tests/src/Normalize/ScalarCodecs.elm: -------------------------------------------------------------------------------- 1 | -- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql 2 | -- https://github.com/dillonkearns/elm-graphql 3 | 4 | 5 | module Normalize.ScalarCodecs exposing (..) 6 | 7 | import Json.Decode as Decode exposing (Decoder) 8 | import Normalize.Scalar exposing (defaultCodecs) 9 | 10 | 11 | type alias CatId = 12 | Normalize.Scalar.CatId 13 | 14 | 15 | type alias DogId = 16 | Normalize.Scalar.DogId 17 | 18 | 19 | type alias Id = 20 | Normalize.Scalar.Id 21 | 22 | 23 | codecs : Normalize.Scalar.Codecs CatId DogId Id 24 | codecs = 25 | Normalize.Scalar.defineCodecs 26 | { codecCatId = defaultCodecs.codecCatId 27 | , codecDogId = defaultCodecs.codecDogId 28 | , codecId = defaultCodecs.codecId 29 | } 30 | -------------------------------------------------------------------------------- /ete_tests/src/Normalize/Union.elm: -------------------------------------------------------------------------------- 1 | -- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql 2 | -- https://github.com/dillonkearns/elm-graphql 3 | 4 | 5 | module Normalize.Union exposing (..) 6 | 7 | 8 | type CharacterUnion 9 | = CharacterUnion 10 | 11 | 12 | type ConflictingTypesUnion 13 | = ConflictingTypesUnion 14 | -------------------------------------------------------------------------------- /ete_tests/src/Normalize/VerifyScalarCodecs.elm: -------------------------------------------------------------------------------- 1 | -- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql 2 | -- https://github.com/dillonkearns/elm-graphql 3 | 4 | 5 | module Normalize.VerifyScalarCodecs exposing (..) 6 | 7 | 8 | placeholder : String 9 | placeholder = 10 | "" 11 | -------------------------------------------------------------------------------- /examples/.gitignore: -------------------------------------------------------------------------------- 1 | index.html 2 | -------------------------------------------------------------------------------- /examples/complex/ElmPackage.elm: -------------------------------------------------------------------------------- 1 | module ElmPackage exposing (request) 2 | 3 | import Http 4 | import Json.Decode as Decode exposing (Decoder) 5 | 6 | 7 | request : Cmd (Result Http.Error (List String)) 8 | request = 9 | Http.get 10 | { url = "https://package.elm-lang.org/search.json" 11 | , expect = Http.expectJson identity decoder 12 | } 13 | 14 | 15 | 16 | -- Http.riskyRequest 17 | -- { method = "GET" 18 | -- , headers = [] 19 | -- , url = "https://package.elm-lang.org/search.json" 20 | -- , body = Http.emptyBody 21 | -- , expect = Http.expectJson identity decoder 22 | -- , timeout = Nothing 23 | -- , tracker = Nothing 24 | -- } 25 | 26 | 27 | decoder : Decoder (List String) 28 | decoder = 29 | Decode.list (Decode.field "name" Decode.string) 30 | -------------------------------------------------------------------------------- /examples/complex/RepoWithOwner.elm: -------------------------------------------------------------------------------- 1 | module RepoWithOwner exposing (RepoWithOwner, elmPackageUrl, ownerAndRepo, repoWithOwner, toString) 2 | 3 | 4 | type RepoWithOwner 5 | = RepoWithOwner String 6 | 7 | 8 | repoWithOwner : String -> RepoWithOwner 9 | repoWithOwner value = 10 | RepoWithOwner value 11 | 12 | 13 | elmPackageUrl : RepoWithOwner -> String 14 | elmPackageUrl repoWithOwnerValue = 15 | "http://package.elm-lang.org/packages/" ++ toString repoWithOwnerValue ++ "/latest" 16 | 17 | 18 | toString : RepoWithOwner -> String 19 | toString (RepoWithOwner value) = 20 | value 21 | 22 | 23 | ownerAndRepo : RepoWithOwner -> { owner : String, repoName : String } 24 | ownerAndRepo (RepoWithOwner value) = 25 | case value |> String.split "/" of 26 | [ owner, repoName ] -> 27 | { owner = owner, repoName = repoName } 28 | 29 | _ -> 30 | { owner = "???", repoName = "???" } 31 | -------------------------------------------------------------------------------- /examples/complex/elm.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "application", 3 | "source-directories": [ 4 | "../../src", 5 | "../src", 6 | "." 7 | ], 8 | "elm-version": "0.19.1", 9 | "dependencies": { 10 | "direct": { 11 | "elm/browser": "1.0.1", 12 | "elm/core": "1.0.2", 13 | "elm/html": "1.0.0", 14 | "elm/http": "2.0.0", 15 | "elm/json": "1.1.2", 16 | "elm/regex": "1.0.0", 17 | "elm/time": "1.0.0", 18 | "elm/url": "1.0.0", 19 | "elm-community/list-extra": "8.0.0", 20 | "j-maas/elm-ordered-containers": "1.0.0", 21 | "krisajenkins/remotedata": "6.0.1", 22 | "lukewestby/elm-string-interpolate": "1.0.4", 23 | "mdgriffith/elm-ui": "1.1.0", 24 | "rtfeldman/elm-iso8601-date-strings": "1.1.2", 25 | "ryan-haskell/date-format": "1.0.0" 26 | }, 27 | "indirect": { 28 | "elm/bytes": "1.0.7", 29 | "elm/file": "1.0.1", 30 | "elm/parser": "1.1.0", 31 | "elm/virtual-dom": "1.0.2" 32 | } 33 | }, 34 | "test-dependencies": { 35 | "direct": {}, 36 | "indirect": {} 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /examples/complex/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "complex", 3 | "version": "1.0.0", 4 | "description": "", 5 | "main": "index.js", 6 | "scripts": { 7 | "start": "elm-live ./Main.elm --open" 8 | }, 9 | "keywords": [], 10 | "author": "", 11 | "license": "ISC", 12 | "devDependencies": { 13 | "elm": "^0.19.1-3", 14 | "elm-format": "^0.8.1", 15 | "elm-live": "3.4.0" 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /examples/elm-analyse.json: -------------------------------------------------------------------------------- 1 | { 2 | "excludedPaths": ["src/Github", "src/Swapi", "../src"], 3 | "checks": { 4 | "UnusedImportAlias": false, 5 | "UnusedVariable": false, 6 | "UnusedPatternVariable": false, 7 | "SingleFieldRecord": false 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /examples/elm.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "application", 3 | "source-directories": [ 4 | "../src", 5 | "src" 6 | ], 7 | "elm-version": "0.19.1", 8 | "dependencies": { 9 | "direct": { 10 | "elm/browser": "1.0.1", 11 | "elm/core": "1.0.2", 12 | "elm/html": "1.0.0", 13 | "elm/http": "2.0.0", 14 | "elm/json": "1.1.2", 15 | "elm/regex": "1.0.0", 16 | "elm/time": "1.0.0", 17 | "elm/url": "1.0.0", 18 | "elm-community/list-extra": "8.0.0", 19 | "j-maas/elm-ordered-containers": "1.0.0", 20 | "krisajenkins/remotedata": "6.0.1", 21 | "lukewestby/elm-string-interpolate": "1.0.4", 22 | "mdgriffith/elm-ui": "1.1.0", 23 | "rtfeldman/elm-iso8601-date-strings": "1.1.2", 24 | "ryan-haskell/date-format": "1.0.0" 25 | }, 26 | "indirect": { 27 | "elm/bytes": "1.0.7", 28 | "elm/file": "1.0.1", 29 | "elm/parser": "1.1.0", 30 | "elm/virtual-dom": "1.0.2" 31 | } 32 | }, 33 | "test-dependencies": { 34 | "direct": {}, 35 | "indirect": {} 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /examples/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "complex", 3 | "version": "1.0.0", 4 | "description": "", 5 | "main": "index.js", 6 | "scripts": {}, 7 | "keywords": [], 8 | "author": "", 9 | "license": "ISC", 10 | "devDependencies": { 11 | "elm": "latest-0.19.1", 12 | "elm-format": "0.8.3", 13 | "elm-live": "3.4.0" 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /examples/src/CustomScalarCodecs.elm: -------------------------------------------------------------------------------- 1 | module CustomScalarCodecs exposing (Id(..), PosixTime, codecs) 2 | 3 | import Json.Decode as Decode 4 | import Json.Encode as Encode 5 | import Swapi.Scalar 6 | import Time 7 | 8 | 9 | type Id 10 | = Id Int 11 | 12 | 13 | type alias PosixTime = 14 | Time.Posix 15 | 16 | 17 | codecs : Swapi.Scalar.Codecs Id PosixTime 18 | codecs = 19 | Swapi.Scalar.defineCodecs 20 | { codecId = 21 | { encoder = \(Id raw) -> raw |> String.fromInt |> Encode.string 22 | , decoder = 23 | Decode.string 24 | |> Decode.map String.toInt 25 | |> Decode.andThen 26 | (\maybeParsedId -> 27 | case maybeParsedId of 28 | Just parsedId -> 29 | Decode.succeed parsedId 30 | 31 | Nothing -> 32 | Decode.fail "Could not parse ID as an Int." 33 | ) 34 | |> Decode.map Id 35 | } 36 | , codecPosixTime = 37 | { encoder = Time.posixToMillis >> Encode.int 38 | , decoder = Decode.int |> Decode.map Time.millisToPosix 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /examples/src/Github/Interface.elm: -------------------------------------------------------------------------------- 1 | -- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql 2 | -- https://github.com/dillonkearns/elm-graphql 3 | 4 | 5 | module Github.Interface exposing (..) 6 | 7 | 8 | type Actor 9 | = Actor 10 | 11 | 12 | type Assignable 13 | = Assignable 14 | 15 | 16 | type Closable 17 | = Closable 18 | 19 | 20 | type Comment 21 | = Comment 22 | 23 | 24 | type Deletable 25 | = Deletable 26 | 27 | 28 | type GitObject 29 | = GitObject 30 | 31 | 32 | type GitSignature 33 | = GitSignature 34 | 35 | 36 | type Labelable 37 | = Labelable 38 | 39 | 40 | type Lockable 41 | = Lockable 42 | 43 | 44 | type Node 45 | = Node 46 | 47 | 48 | type ProjectOwner 49 | = ProjectOwner 50 | 51 | 52 | type Reactable 53 | = Reactable 54 | 55 | 56 | type RepositoryInfo 57 | = RepositoryInfo 58 | 59 | 60 | type RepositoryNode 61 | = RepositoryNode 62 | 63 | 64 | type RepositoryOwner 65 | = RepositoryOwner 66 | 67 | 68 | type Starrable 69 | = Starrable 70 | 71 | 72 | type Subscribable 73 | = Subscribable 74 | 75 | 76 | type UniformResourceLocatable 77 | = UniformResourceLocatable 78 | 79 | 80 | type Updatable 81 | = Updatable 82 | 83 | 84 | type UpdatableComment 85 | = UpdatableComment 86 | -------------------------------------------------------------------------------- /examples/src/Github/Object/AcceptTopicSuggestionPayload.elm: -------------------------------------------------------------------------------- 1 | -- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql 2 | -- https://github.com/dillonkearns/elm-graphql 3 | 4 | 5 | module Github.Object.AcceptTopicSuggestionPayload exposing (..) 6 | 7 | import Github.InputObject 8 | import Github.Interface 9 | import Github.Object 10 | import Github.Scalar 11 | import Github.ScalarCodecs 12 | import Github.Union 13 | import Graphql.Internal.Builder.Argument as Argument exposing (Argument) 14 | import Graphql.Internal.Builder.Object as Object 15 | import Graphql.Internal.Encode as Encode exposing (Value) 16 | import Graphql.Operation exposing (RootMutation, RootQuery, RootSubscription) 17 | import Graphql.OptionalArgument exposing (OptionalArgument(..)) 18 | import Graphql.SelectionSet exposing (SelectionSet) 19 | import Json.Decode as Decode 20 | 21 | 22 | {-| A unique identifier for the client performing the mutation. 23 | -} 24 | clientMutationId : SelectionSet (Maybe String) Github.Object.AcceptTopicSuggestionPayload 25 | clientMutationId = 26 | Object.selectionForField "(Maybe String)" "clientMutationId" [] (Decode.string |> Decode.nullable) 27 | 28 | 29 | {-| The accepted topic. 30 | -} 31 | topic : 32 | SelectionSet decodesTo Github.Object.Topic 33 | -> SelectionSet decodesTo Github.Object.AcceptTopicSuggestionPayload 34 | topic object____ = 35 | Object.selectionForCompositeField "topic" [] object____ Basics.identity 36 | -------------------------------------------------------------------------------- /examples/src/Github/Object/AddStarPayload.elm: -------------------------------------------------------------------------------- 1 | -- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql 2 | -- https://github.com/dillonkearns/elm-graphql 3 | 4 | 5 | module Github.Object.AddStarPayload exposing (..) 6 | 7 | import Github.InputObject 8 | import Github.Interface 9 | import Github.Object 10 | import Github.Scalar 11 | import Github.ScalarCodecs 12 | import Github.Union 13 | import Graphql.Internal.Builder.Argument as Argument exposing (Argument) 14 | import Graphql.Internal.Builder.Object as Object 15 | import Graphql.Internal.Encode as Encode exposing (Value) 16 | import Graphql.Operation exposing (RootMutation, RootQuery, RootSubscription) 17 | import Graphql.OptionalArgument exposing (OptionalArgument(..)) 18 | import Graphql.SelectionSet exposing (SelectionSet) 19 | import Json.Decode as Decode 20 | 21 | 22 | {-| A unique identifier for the client performing the mutation. 23 | -} 24 | clientMutationId : SelectionSet (Maybe String) Github.Object.AddStarPayload 25 | clientMutationId = 26 | Object.selectionForField "(Maybe String)" "clientMutationId" [] (Decode.string |> Decode.nullable) 27 | 28 | 29 | {-| The starrable. 30 | -} 31 | starrable : 32 | SelectionSet decodesTo Github.Interface.Starrable 33 | -> SelectionSet decodesTo Github.Object.AddStarPayload 34 | starrable object____ = 35 | Object.selectionForCompositeField "starrable" [] object____ Basics.identity 36 | -------------------------------------------------------------------------------- /examples/src/Github/Object/Blame.elm: -------------------------------------------------------------------------------- 1 | -- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql 2 | -- https://github.com/dillonkearns/elm-graphql 3 | 4 | 5 | module Github.Object.Blame exposing (..) 6 | 7 | import Github.InputObject 8 | import Github.Interface 9 | import Github.Object 10 | import Github.Scalar 11 | import Github.ScalarCodecs 12 | import Github.Union 13 | import Graphql.Internal.Builder.Argument as Argument exposing (Argument) 14 | import Graphql.Internal.Builder.Object as Object 15 | import Graphql.Internal.Encode as Encode exposing (Value) 16 | import Graphql.Operation exposing (RootMutation, RootQuery, RootSubscription) 17 | import Graphql.OptionalArgument exposing (OptionalArgument(..)) 18 | import Graphql.SelectionSet exposing (SelectionSet) 19 | import Json.Decode as Decode 20 | 21 | 22 | {-| The list of ranges from a Git blame. 23 | -} 24 | ranges : 25 | SelectionSet decodesTo Github.Object.BlameRange 26 | -> SelectionSet (List decodesTo) Github.Object.Blame 27 | ranges object____ = 28 | Object.selectionForCompositeField "ranges" [] object____ (Basics.identity >> Decode.list) 29 | -------------------------------------------------------------------------------- /examples/src/Github/Object/CommitCommentEdge.elm: -------------------------------------------------------------------------------- 1 | -- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql 2 | -- https://github.com/dillonkearns/elm-graphql 3 | 4 | 5 | module Github.Object.CommitCommentEdge exposing (..) 6 | 7 | import Github.InputObject 8 | import Github.Interface 9 | import Github.Object 10 | import Github.Scalar 11 | import Github.ScalarCodecs 12 | import Github.Union 13 | import Graphql.Internal.Builder.Argument as Argument exposing (Argument) 14 | import Graphql.Internal.Builder.Object as Object 15 | import Graphql.Internal.Encode as Encode exposing (Value) 16 | import Graphql.Operation exposing (RootMutation, RootQuery, RootSubscription) 17 | import Graphql.OptionalArgument exposing (OptionalArgument(..)) 18 | import Graphql.SelectionSet exposing (SelectionSet) 19 | import Json.Decode as Decode 20 | 21 | 22 | {-| A cursor for use in pagination. 23 | -} 24 | cursor : SelectionSet String Github.Object.CommitCommentEdge 25 | cursor = 26 | Object.selectionForField "String" "cursor" [] Decode.string 27 | 28 | 29 | {-| The item at the end of the edge. 30 | -} 31 | node : 32 | SelectionSet decodesTo Github.Object.CommitComment 33 | -> SelectionSet (Maybe decodesTo) Github.Object.CommitCommentEdge 34 | node object____ = 35 | Object.selectionForCompositeField "node" [] object____ (Basics.identity >> Decode.nullable) 36 | -------------------------------------------------------------------------------- /examples/src/Github/Object/CommitEdge.elm: -------------------------------------------------------------------------------- 1 | -- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql 2 | -- https://github.com/dillonkearns/elm-graphql 3 | 4 | 5 | module Github.Object.CommitEdge exposing (..) 6 | 7 | import Github.InputObject 8 | import Github.Interface 9 | import Github.Object 10 | import Github.Scalar 11 | import Github.ScalarCodecs 12 | import Github.Union 13 | import Graphql.Internal.Builder.Argument as Argument exposing (Argument) 14 | import Graphql.Internal.Builder.Object as Object 15 | import Graphql.Internal.Encode as Encode exposing (Value) 16 | import Graphql.Operation exposing (RootMutation, RootQuery, RootSubscription) 17 | import Graphql.OptionalArgument exposing (OptionalArgument(..)) 18 | import Graphql.SelectionSet exposing (SelectionSet) 19 | import Json.Decode as Decode 20 | 21 | 22 | {-| A cursor for use in pagination. 23 | -} 24 | cursor : SelectionSet String Github.Object.CommitEdge 25 | cursor = 26 | Object.selectionForField "String" "cursor" [] Decode.string 27 | 28 | 29 | {-| The item at the end of the edge. 30 | -} 31 | node : 32 | SelectionSet decodesTo Github.Object.Commit 33 | -> SelectionSet (Maybe decodesTo) Github.Object.CommitEdge 34 | node object____ = 35 | Object.selectionForCompositeField "node" [] object____ (Basics.identity >> Decode.nullable) 36 | -------------------------------------------------------------------------------- /examples/src/Github/Object/CreateProjectPayload.elm: -------------------------------------------------------------------------------- 1 | -- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql 2 | -- https://github.com/dillonkearns/elm-graphql 3 | 4 | 5 | module Github.Object.CreateProjectPayload exposing (..) 6 | 7 | import Github.InputObject 8 | import Github.Interface 9 | import Github.Object 10 | import Github.Scalar 11 | import Github.ScalarCodecs 12 | import Github.Union 13 | import Graphql.Internal.Builder.Argument as Argument exposing (Argument) 14 | import Graphql.Internal.Builder.Object as Object 15 | import Graphql.Internal.Encode as Encode exposing (Value) 16 | import Graphql.Operation exposing (RootMutation, RootQuery, RootSubscription) 17 | import Graphql.OptionalArgument exposing (OptionalArgument(..)) 18 | import Graphql.SelectionSet exposing (SelectionSet) 19 | import Json.Decode as Decode 20 | 21 | 22 | {-| A unique identifier for the client performing the mutation. 23 | -} 24 | clientMutationId : SelectionSet (Maybe String) Github.Object.CreateProjectPayload 25 | clientMutationId = 26 | Object.selectionForField "(Maybe String)" "clientMutationId" [] (Decode.string |> Decode.nullable) 27 | 28 | 29 | {-| The new project. 30 | -} 31 | project : 32 | SelectionSet decodesTo Github.Object.Project 33 | -> SelectionSet decodesTo Github.Object.CreateProjectPayload 34 | project object____ = 35 | Object.selectionForCompositeField "project" [] object____ Basics.identity 36 | -------------------------------------------------------------------------------- /examples/src/Github/Object/DeclineTopicSuggestionPayload.elm: -------------------------------------------------------------------------------- 1 | -- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql 2 | -- https://github.com/dillonkearns/elm-graphql 3 | 4 | 5 | module Github.Object.DeclineTopicSuggestionPayload exposing (..) 6 | 7 | import Github.InputObject 8 | import Github.Interface 9 | import Github.Object 10 | import Github.Scalar 11 | import Github.ScalarCodecs 12 | import Github.Union 13 | import Graphql.Internal.Builder.Argument as Argument exposing (Argument) 14 | import Graphql.Internal.Builder.Object as Object 15 | import Graphql.Internal.Encode as Encode exposing (Value) 16 | import Graphql.Operation exposing (RootMutation, RootQuery, RootSubscription) 17 | import Graphql.OptionalArgument exposing (OptionalArgument(..)) 18 | import Graphql.SelectionSet exposing (SelectionSet) 19 | import Json.Decode as Decode 20 | 21 | 22 | {-| A unique identifier for the client performing the mutation. 23 | -} 24 | clientMutationId : SelectionSet (Maybe String) Github.Object.DeclineTopicSuggestionPayload 25 | clientMutationId = 26 | Object.selectionForField "(Maybe String)" "clientMutationId" [] (Decode.string |> Decode.nullable) 27 | 28 | 29 | {-| The declined topic. 30 | -} 31 | topic : 32 | SelectionSet decodesTo Github.Object.Topic 33 | -> SelectionSet decodesTo Github.Object.DeclineTopicSuggestionPayload 34 | topic object____ = 35 | Object.selectionForCompositeField "topic" [] object____ Basics.identity 36 | -------------------------------------------------------------------------------- /examples/src/Github/Object/DeleteProjectPayload.elm: -------------------------------------------------------------------------------- 1 | -- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql 2 | -- https://github.com/dillonkearns/elm-graphql 3 | 4 | 5 | module Github.Object.DeleteProjectPayload exposing (..) 6 | 7 | import Github.InputObject 8 | import Github.Interface 9 | import Github.Object 10 | import Github.Scalar 11 | import Github.ScalarCodecs 12 | import Github.Union 13 | import Graphql.Internal.Builder.Argument as Argument exposing (Argument) 14 | import Graphql.Internal.Builder.Object as Object 15 | import Graphql.Internal.Encode as Encode exposing (Value) 16 | import Graphql.Operation exposing (RootMutation, RootQuery, RootSubscription) 17 | import Graphql.OptionalArgument exposing (OptionalArgument(..)) 18 | import Graphql.SelectionSet exposing (SelectionSet) 19 | import Json.Decode as Decode 20 | 21 | 22 | {-| A unique identifier for the client performing the mutation. 23 | -} 24 | clientMutationId : SelectionSet (Maybe String) Github.Object.DeleteProjectPayload 25 | clientMutationId = 26 | Object.selectionForField "(Maybe String)" "clientMutationId" [] (Decode.string |> Decode.nullable) 27 | 28 | 29 | {-| The repository or organization the project was removed from. 30 | -} 31 | owner : 32 | SelectionSet decodesTo Github.Interface.ProjectOwner 33 | -> SelectionSet decodesTo Github.Object.DeleteProjectPayload 34 | owner object____ = 35 | Object.selectionForCompositeField "owner" [] object____ Basics.identity 36 | -------------------------------------------------------------------------------- /examples/src/Github/Object/DeployKeyEdge.elm: -------------------------------------------------------------------------------- 1 | -- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql 2 | -- https://github.com/dillonkearns/elm-graphql 3 | 4 | 5 | module Github.Object.DeployKeyEdge exposing (..) 6 | 7 | import Github.InputObject 8 | import Github.Interface 9 | import Github.Object 10 | import Github.Scalar 11 | import Github.ScalarCodecs 12 | import Github.Union 13 | import Graphql.Internal.Builder.Argument as Argument exposing (Argument) 14 | import Graphql.Internal.Builder.Object as Object 15 | import Graphql.Internal.Encode as Encode exposing (Value) 16 | import Graphql.Operation exposing (RootMutation, RootQuery, RootSubscription) 17 | import Graphql.OptionalArgument exposing (OptionalArgument(..)) 18 | import Graphql.SelectionSet exposing (SelectionSet) 19 | import Json.Decode as Decode 20 | 21 | 22 | {-| A cursor for use in pagination. 23 | -} 24 | cursor : SelectionSet String Github.Object.DeployKeyEdge 25 | cursor = 26 | Object.selectionForField "String" "cursor" [] Decode.string 27 | 28 | 29 | {-| The item at the end of the edge. 30 | -} 31 | node : 32 | SelectionSet decodesTo Github.Object.DeployKey 33 | -> SelectionSet (Maybe decodesTo) Github.Object.DeployKeyEdge 34 | node object____ = 35 | Object.selectionForCompositeField "node" [] object____ (Basics.identity >> Decode.nullable) 36 | -------------------------------------------------------------------------------- /examples/src/Github/Object/DeploymentEdge.elm: -------------------------------------------------------------------------------- 1 | -- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql 2 | -- https://github.com/dillonkearns/elm-graphql 3 | 4 | 5 | module Github.Object.DeploymentEdge exposing (..) 6 | 7 | import Github.InputObject 8 | import Github.Interface 9 | import Github.Object 10 | import Github.Scalar 11 | import Github.ScalarCodecs 12 | import Github.Union 13 | import Graphql.Internal.Builder.Argument as Argument exposing (Argument) 14 | import Graphql.Internal.Builder.Object as Object 15 | import Graphql.Internal.Encode as Encode exposing (Value) 16 | import Graphql.Operation exposing (RootMutation, RootQuery, RootSubscription) 17 | import Graphql.OptionalArgument exposing (OptionalArgument(..)) 18 | import Graphql.SelectionSet exposing (SelectionSet) 19 | import Json.Decode as Decode 20 | 21 | 22 | {-| A cursor for use in pagination. 23 | -} 24 | cursor : SelectionSet String Github.Object.DeploymentEdge 25 | cursor = 26 | Object.selectionForField "String" "cursor" [] Decode.string 27 | 28 | 29 | {-| The item at the end of the edge. 30 | -} 31 | node : 32 | SelectionSet decodesTo Github.Object.Deployment 33 | -> SelectionSet (Maybe decodesTo) Github.Object.DeploymentEdge 34 | node object____ = 35 | Object.selectionForCompositeField "node" [] object____ (Basics.identity >> Decode.nullable) 36 | -------------------------------------------------------------------------------- /examples/src/Github/Object/DeploymentStatusEdge.elm: -------------------------------------------------------------------------------- 1 | -- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql 2 | -- https://github.com/dillonkearns/elm-graphql 3 | 4 | 5 | module Github.Object.DeploymentStatusEdge exposing (..) 6 | 7 | import Github.InputObject 8 | import Github.Interface 9 | import Github.Object 10 | import Github.Scalar 11 | import Github.ScalarCodecs 12 | import Github.Union 13 | import Graphql.Internal.Builder.Argument as Argument exposing (Argument) 14 | import Graphql.Internal.Builder.Object as Object 15 | import Graphql.Internal.Encode as Encode exposing (Value) 16 | import Graphql.Operation exposing (RootMutation, RootQuery, RootSubscription) 17 | import Graphql.OptionalArgument exposing (OptionalArgument(..)) 18 | import Graphql.SelectionSet exposing (SelectionSet) 19 | import Json.Decode as Decode 20 | 21 | 22 | {-| A cursor for use in pagination. 23 | -} 24 | cursor : SelectionSet String Github.Object.DeploymentStatusEdge 25 | cursor = 26 | Object.selectionForField "String" "cursor" [] Decode.string 27 | 28 | 29 | {-| The item at the end of the edge. 30 | -} 31 | node : 32 | SelectionSet decodesTo Github.Object.DeploymentStatus 33 | -> SelectionSet (Maybe decodesTo) Github.Object.DeploymentStatusEdge 34 | node object____ = 35 | Object.selectionForCompositeField "node" [] object____ (Basics.identity >> Decode.nullable) 36 | -------------------------------------------------------------------------------- /examples/src/Github/Object/ExternalIdentityEdge.elm: -------------------------------------------------------------------------------- 1 | -- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql 2 | -- https://github.com/dillonkearns/elm-graphql 3 | 4 | 5 | module Github.Object.ExternalIdentityEdge exposing (..) 6 | 7 | import Github.InputObject 8 | import Github.Interface 9 | import Github.Object 10 | import Github.Scalar 11 | import Github.ScalarCodecs 12 | import Github.Union 13 | import Graphql.Internal.Builder.Argument as Argument exposing (Argument) 14 | import Graphql.Internal.Builder.Object as Object 15 | import Graphql.Internal.Encode as Encode exposing (Value) 16 | import Graphql.Operation exposing (RootMutation, RootQuery, RootSubscription) 17 | import Graphql.OptionalArgument exposing (OptionalArgument(..)) 18 | import Graphql.SelectionSet exposing (SelectionSet) 19 | import Json.Decode as Decode 20 | 21 | 22 | {-| A cursor for use in pagination. 23 | -} 24 | cursor : SelectionSet String Github.Object.ExternalIdentityEdge 25 | cursor = 26 | Object.selectionForField "String" "cursor" [] Decode.string 27 | 28 | 29 | {-| The item at the end of the edge. 30 | -} 31 | node : 32 | SelectionSet decodesTo Github.Object.ExternalIdentity 33 | -> SelectionSet (Maybe decodesTo) Github.Object.ExternalIdentityEdge 34 | node object____ = 35 | Object.selectionForCompositeField "node" [] object____ (Basics.identity >> Decode.nullable) 36 | -------------------------------------------------------------------------------- /examples/src/Github/Object/ExternalIdentitySamlAttributes.elm: -------------------------------------------------------------------------------- 1 | -- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql 2 | -- https://github.com/dillonkearns/elm-graphql 3 | 4 | 5 | module Github.Object.ExternalIdentitySamlAttributes exposing (..) 6 | 7 | import Github.InputObject 8 | import Github.Interface 9 | import Github.Object 10 | import Github.Scalar 11 | import Github.ScalarCodecs 12 | import Github.Union 13 | import Graphql.Internal.Builder.Argument as Argument exposing (Argument) 14 | import Graphql.Internal.Builder.Object as Object 15 | import Graphql.Internal.Encode as Encode exposing (Value) 16 | import Graphql.Operation exposing (RootMutation, RootQuery, RootSubscription) 17 | import Graphql.OptionalArgument exposing (OptionalArgument(..)) 18 | import Graphql.SelectionSet exposing (SelectionSet) 19 | import Json.Decode as Decode 20 | 21 | 22 | {-| The NameID of the SAML identity 23 | -} 24 | nameId : SelectionSet (Maybe String) Github.Object.ExternalIdentitySamlAttributes 25 | nameId = 26 | Object.selectionForField "(Maybe String)" "nameId" [] (Decode.string |> Decode.nullable) 27 | -------------------------------------------------------------------------------- /examples/src/Github/Object/ExternalIdentityScimAttributes.elm: -------------------------------------------------------------------------------- 1 | -- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql 2 | -- https://github.com/dillonkearns/elm-graphql 3 | 4 | 5 | module Github.Object.ExternalIdentityScimAttributes exposing (..) 6 | 7 | import Github.InputObject 8 | import Github.Interface 9 | import Github.Object 10 | import Github.Scalar 11 | import Github.ScalarCodecs 12 | import Github.Union 13 | import Graphql.Internal.Builder.Argument as Argument exposing (Argument) 14 | import Graphql.Internal.Builder.Object as Object 15 | import Graphql.Internal.Encode as Encode exposing (Value) 16 | import Graphql.Operation exposing (RootMutation, RootQuery, RootSubscription) 17 | import Graphql.OptionalArgument exposing (OptionalArgument(..)) 18 | import Graphql.SelectionSet exposing (SelectionSet) 19 | import Json.Decode as Decode 20 | 21 | 22 | {-| The userName of the SCIM identity 23 | -} 24 | username : SelectionSet (Maybe String) Github.Object.ExternalIdentityScimAttributes 25 | username = 26 | Object.selectionForField "(Maybe String)" "username" [] (Decode.string |> Decode.nullable) 27 | -------------------------------------------------------------------------------- /examples/src/Github/Object/GistCommentEdge.elm: -------------------------------------------------------------------------------- 1 | -- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql 2 | -- https://github.com/dillonkearns/elm-graphql 3 | 4 | 5 | module Github.Object.GistCommentEdge exposing (..) 6 | 7 | import Github.InputObject 8 | import Github.Interface 9 | import Github.Object 10 | import Github.Scalar 11 | import Github.ScalarCodecs 12 | import Github.Union 13 | import Graphql.Internal.Builder.Argument as Argument exposing (Argument) 14 | import Graphql.Internal.Builder.Object as Object 15 | import Graphql.Internal.Encode as Encode exposing (Value) 16 | import Graphql.Operation exposing (RootMutation, RootQuery, RootSubscription) 17 | import Graphql.OptionalArgument exposing (OptionalArgument(..)) 18 | import Graphql.SelectionSet exposing (SelectionSet) 19 | import Json.Decode as Decode 20 | 21 | 22 | {-| A cursor for use in pagination. 23 | -} 24 | cursor : SelectionSet String Github.Object.GistCommentEdge 25 | cursor = 26 | Object.selectionForField "String" "cursor" [] Decode.string 27 | 28 | 29 | {-| The item at the end of the edge. 30 | -} 31 | node : 32 | SelectionSet decodesTo Github.Object.GistComment 33 | -> SelectionSet (Maybe decodesTo) Github.Object.GistCommentEdge 34 | node object____ = 35 | Object.selectionForCompositeField "node" [] object____ (Basics.identity >> Decode.nullable) 36 | -------------------------------------------------------------------------------- /examples/src/Github/Object/GistEdge.elm: -------------------------------------------------------------------------------- 1 | -- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql 2 | -- https://github.com/dillonkearns/elm-graphql 3 | 4 | 5 | module Github.Object.GistEdge exposing (..) 6 | 7 | import Github.InputObject 8 | import Github.Interface 9 | import Github.Object 10 | import Github.Scalar 11 | import Github.ScalarCodecs 12 | import Github.Union 13 | import Graphql.Internal.Builder.Argument as Argument exposing (Argument) 14 | import Graphql.Internal.Builder.Object as Object 15 | import Graphql.Internal.Encode as Encode exposing (Value) 16 | import Graphql.Operation exposing (RootMutation, RootQuery, RootSubscription) 17 | import Graphql.OptionalArgument exposing (OptionalArgument(..)) 18 | import Graphql.SelectionSet exposing (SelectionSet) 19 | import Json.Decode as Decode 20 | 21 | 22 | {-| A cursor for use in pagination. 23 | -} 24 | cursor : SelectionSet String Github.Object.GistEdge 25 | cursor = 26 | Object.selectionForField "String" "cursor" [] Decode.string 27 | 28 | 29 | {-| The item at the end of the edge. 30 | -} 31 | node : 32 | SelectionSet decodesTo Github.Object.Gist 33 | -> SelectionSet (Maybe decodesTo) Github.Object.GistEdge 34 | node object____ = 35 | Object.selectionForCompositeField "node" [] object____ (Basics.identity >> Decode.nullable) 36 | -------------------------------------------------------------------------------- /examples/src/Github/Object/IssueCommentEdge.elm: -------------------------------------------------------------------------------- 1 | -- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql 2 | -- https://github.com/dillonkearns/elm-graphql 3 | 4 | 5 | module Github.Object.IssueCommentEdge exposing (..) 6 | 7 | import Github.InputObject 8 | import Github.Interface 9 | import Github.Object 10 | import Github.Scalar 11 | import Github.ScalarCodecs 12 | import Github.Union 13 | import Graphql.Internal.Builder.Argument as Argument exposing (Argument) 14 | import Graphql.Internal.Builder.Object as Object 15 | import Graphql.Internal.Encode as Encode exposing (Value) 16 | import Graphql.Operation exposing (RootMutation, RootQuery, RootSubscription) 17 | import Graphql.OptionalArgument exposing (OptionalArgument(..)) 18 | import Graphql.SelectionSet exposing (SelectionSet) 19 | import Json.Decode as Decode 20 | 21 | 22 | {-| A cursor for use in pagination. 23 | -} 24 | cursor : SelectionSet String Github.Object.IssueCommentEdge 25 | cursor = 26 | Object.selectionForField "String" "cursor" [] Decode.string 27 | 28 | 29 | {-| The item at the end of the edge. 30 | -} 31 | node : 32 | SelectionSet decodesTo Github.Object.IssueComment 33 | -> SelectionSet (Maybe decodesTo) Github.Object.IssueCommentEdge 34 | node object____ = 35 | Object.selectionForCompositeField "node" [] object____ (Basics.identity >> Decode.nullable) 36 | -------------------------------------------------------------------------------- /examples/src/Github/Object/IssueEdge.elm: -------------------------------------------------------------------------------- 1 | -- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql 2 | -- https://github.com/dillonkearns/elm-graphql 3 | 4 | 5 | module Github.Object.IssueEdge exposing (..) 6 | 7 | import Github.InputObject 8 | import Github.Interface 9 | import Github.Object 10 | import Github.Scalar 11 | import Github.ScalarCodecs 12 | import Github.Union 13 | import Graphql.Internal.Builder.Argument as Argument exposing (Argument) 14 | import Graphql.Internal.Builder.Object as Object 15 | import Graphql.Internal.Encode as Encode exposing (Value) 16 | import Graphql.Operation exposing (RootMutation, RootQuery, RootSubscription) 17 | import Graphql.OptionalArgument exposing (OptionalArgument(..)) 18 | import Graphql.SelectionSet exposing (SelectionSet) 19 | import Json.Decode as Decode 20 | 21 | 22 | {-| A cursor for use in pagination. 23 | -} 24 | cursor : SelectionSet String Github.Object.IssueEdge 25 | cursor = 26 | Object.selectionForField "String" "cursor" [] Decode.string 27 | 28 | 29 | {-| The item at the end of the edge. 30 | -} 31 | node : 32 | SelectionSet decodesTo Github.Object.Issue 33 | -> SelectionSet (Maybe decodesTo) Github.Object.IssueEdge 34 | node object____ = 35 | Object.selectionForCompositeField "node" [] object____ (Basics.identity >> Decode.nullable) 36 | -------------------------------------------------------------------------------- /examples/src/Github/Object/IssueTimelineItemEdge.elm: -------------------------------------------------------------------------------- 1 | -- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql 2 | -- https://github.com/dillonkearns/elm-graphql 3 | 4 | 5 | module Github.Object.IssueTimelineItemEdge exposing (..) 6 | 7 | import Github.InputObject 8 | import Github.Interface 9 | import Github.Object 10 | import Github.Scalar 11 | import Github.ScalarCodecs 12 | import Github.Union 13 | import Graphql.Internal.Builder.Argument as Argument exposing (Argument) 14 | import Graphql.Internal.Builder.Object as Object 15 | import Graphql.Internal.Encode as Encode exposing (Value) 16 | import Graphql.Operation exposing (RootMutation, RootQuery, RootSubscription) 17 | import Graphql.OptionalArgument exposing (OptionalArgument(..)) 18 | import Graphql.SelectionSet exposing (SelectionSet) 19 | import Json.Decode as Decode 20 | 21 | 22 | {-| A cursor for use in pagination. 23 | -} 24 | cursor : SelectionSet String Github.Object.IssueTimelineItemEdge 25 | cursor = 26 | Object.selectionForField "String" "cursor" [] Decode.string 27 | 28 | 29 | {-| The item at the end of the edge. 30 | -} 31 | node : 32 | SelectionSet decodesTo Github.Union.IssueTimelineItem 33 | -> SelectionSet (Maybe decodesTo) Github.Object.IssueTimelineItemEdge 34 | node object____ = 35 | Object.selectionForCompositeField "node" [] object____ (Basics.identity >> Decode.nullable) 36 | -------------------------------------------------------------------------------- /examples/src/Github/Object/LabelEdge.elm: -------------------------------------------------------------------------------- 1 | -- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql 2 | -- https://github.com/dillonkearns/elm-graphql 3 | 4 | 5 | module Github.Object.LabelEdge exposing (..) 6 | 7 | import Github.InputObject 8 | import Github.Interface 9 | import Github.Object 10 | import Github.Scalar 11 | import Github.ScalarCodecs 12 | import Github.Union 13 | import Graphql.Internal.Builder.Argument as Argument exposing (Argument) 14 | import Graphql.Internal.Builder.Object as Object 15 | import Graphql.Internal.Encode as Encode exposing (Value) 16 | import Graphql.Operation exposing (RootMutation, RootQuery, RootSubscription) 17 | import Graphql.OptionalArgument exposing (OptionalArgument(..)) 18 | import Graphql.SelectionSet exposing (SelectionSet) 19 | import Json.Decode as Decode 20 | 21 | 22 | {-| A cursor for use in pagination. 23 | -} 24 | cursor : SelectionSet String Github.Object.LabelEdge 25 | cursor = 26 | Object.selectionForField "String" "cursor" [] Decode.string 27 | 28 | 29 | {-| The item at the end of the edge. 30 | -} 31 | node : 32 | SelectionSet decodesTo Github.Object.Label 33 | -> SelectionSet (Maybe decodesTo) Github.Object.LabelEdge 34 | node object____ = 35 | Object.selectionForCompositeField "node" [] object____ (Basics.identity >> Decode.nullable) 36 | -------------------------------------------------------------------------------- /examples/src/Github/Object/Language.elm: -------------------------------------------------------------------------------- 1 | -- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql 2 | -- https://github.com/dillonkearns/elm-graphql 3 | 4 | 5 | module Github.Object.Language exposing (..) 6 | 7 | import Github.InputObject 8 | import Github.Interface 9 | import Github.Object 10 | import Github.Scalar 11 | import Github.ScalarCodecs 12 | import Github.Union 13 | import Graphql.Internal.Builder.Argument as Argument exposing (Argument) 14 | import Graphql.Internal.Builder.Object as Object 15 | import Graphql.Internal.Encode as Encode exposing (Value) 16 | import Graphql.Operation exposing (RootMutation, RootQuery, RootSubscription) 17 | import Graphql.OptionalArgument exposing (OptionalArgument(..)) 18 | import Graphql.SelectionSet exposing (SelectionSet) 19 | import Json.Decode as Decode 20 | 21 | 22 | {-| The color defined for the current language. 23 | -} 24 | color : SelectionSet (Maybe String) Github.Object.Language 25 | color = 26 | Object.selectionForField "(Maybe String)" "color" [] (Decode.string |> Decode.nullable) 27 | 28 | 29 | id : SelectionSet Github.ScalarCodecs.Id Github.Object.Language 30 | id = 31 | Object.selectionForField "ScalarCodecs.Id" "id" [] (Github.ScalarCodecs.codecs |> Github.Scalar.unwrapCodecs |> .codecId |> .decoder) 32 | 33 | 34 | {-| The name of the current language. 35 | -} 36 | name : SelectionSet String Github.Object.Language 37 | name = 38 | Object.selectionForField "String" "name" [] Decode.string 39 | -------------------------------------------------------------------------------- /examples/src/Github/Object/LanguageEdge.elm: -------------------------------------------------------------------------------- 1 | -- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql 2 | -- https://github.com/dillonkearns/elm-graphql 3 | 4 | 5 | module Github.Object.LanguageEdge exposing (..) 6 | 7 | import Github.InputObject 8 | import Github.Interface 9 | import Github.Object 10 | import Github.Scalar 11 | import Github.ScalarCodecs 12 | import Github.Union 13 | import Graphql.Internal.Builder.Argument as Argument exposing (Argument) 14 | import Graphql.Internal.Builder.Object as Object 15 | import Graphql.Internal.Encode as Encode exposing (Value) 16 | import Graphql.Operation exposing (RootMutation, RootQuery, RootSubscription) 17 | import Graphql.OptionalArgument exposing (OptionalArgument(..)) 18 | import Graphql.SelectionSet exposing (SelectionSet) 19 | import Json.Decode as Decode 20 | 21 | 22 | cursor : SelectionSet String Github.Object.LanguageEdge 23 | cursor = 24 | Object.selectionForField "String" "cursor" [] Decode.string 25 | 26 | 27 | node : 28 | SelectionSet decodesTo Github.Object.Language 29 | -> SelectionSet decodesTo Github.Object.LanguageEdge 30 | node object____ = 31 | Object.selectionForCompositeField "node" [] object____ Basics.identity 32 | 33 | 34 | {-| The number of bytes of code written in the language. 35 | -} 36 | size : SelectionSet Int Github.Object.LanguageEdge 37 | size = 38 | Object.selectionForField "Int" "size" [] Decode.int 39 | -------------------------------------------------------------------------------- /examples/src/Github/Object/LicenseRule.elm: -------------------------------------------------------------------------------- 1 | -- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql 2 | -- https://github.com/dillonkearns/elm-graphql 3 | 4 | 5 | module Github.Object.LicenseRule exposing (..) 6 | 7 | import Github.InputObject 8 | import Github.Interface 9 | import Github.Object 10 | import Github.Scalar 11 | import Github.ScalarCodecs 12 | import Github.Union 13 | import Graphql.Internal.Builder.Argument as Argument exposing (Argument) 14 | import Graphql.Internal.Builder.Object as Object 15 | import Graphql.Internal.Encode as Encode exposing (Value) 16 | import Graphql.Operation exposing (RootMutation, RootQuery, RootSubscription) 17 | import Graphql.OptionalArgument exposing (OptionalArgument(..)) 18 | import Graphql.SelectionSet exposing (SelectionSet) 19 | import Json.Decode as Decode 20 | 21 | 22 | {-| A description of the rule 23 | -} 24 | description : SelectionSet String Github.Object.LicenseRule 25 | description = 26 | Object.selectionForField "String" "description" [] Decode.string 27 | 28 | 29 | {-| The machine-readable rule key 30 | -} 31 | key : SelectionSet String Github.Object.LicenseRule 32 | key = 33 | Object.selectionForField "String" "key" [] Decode.string 34 | 35 | 36 | {-| The human-readable rule label 37 | -} 38 | label : SelectionSet String Github.Object.LicenseRule 39 | label = 40 | Object.selectionForField "String" "label" [] Decode.string 41 | -------------------------------------------------------------------------------- /examples/src/Github/Object/LockLockablePayload.elm: -------------------------------------------------------------------------------- 1 | -- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql 2 | -- https://github.com/dillonkearns/elm-graphql 3 | 4 | 5 | module Github.Object.LockLockablePayload exposing (..) 6 | 7 | import Github.InputObject 8 | import Github.Interface 9 | import Github.Object 10 | import Github.Scalar 11 | import Github.ScalarCodecs 12 | import Github.Union 13 | import Graphql.Internal.Builder.Argument as Argument exposing (Argument) 14 | import Graphql.Internal.Builder.Object as Object 15 | import Graphql.Internal.Encode as Encode exposing (Value) 16 | import Graphql.Operation exposing (RootMutation, RootQuery, RootSubscription) 17 | import Graphql.OptionalArgument exposing (OptionalArgument(..)) 18 | import Graphql.SelectionSet exposing (SelectionSet) 19 | import Json.Decode as Decode 20 | 21 | 22 | {-| A unique identifier for the client performing the mutation. 23 | -} 24 | clientMutationId : SelectionSet (Maybe String) Github.Object.LockLockablePayload 25 | clientMutationId = 26 | Object.selectionForField "(Maybe String)" "clientMutationId" [] (Decode.string |> Decode.nullable) 27 | 28 | 29 | {-| The item that was locked. 30 | -} 31 | lockedRecord : 32 | SelectionSet decodesTo Github.Interface.Lockable 33 | -> SelectionSet (Maybe decodesTo) Github.Object.LockLockablePayload 34 | lockedRecord object____ = 35 | Object.selectionForCompositeField "lockedRecord" [] object____ (Basics.identity >> Decode.nullable) 36 | -------------------------------------------------------------------------------- /examples/src/Github/Object/MarketplaceListingEdge.elm: -------------------------------------------------------------------------------- 1 | -- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql 2 | -- https://github.com/dillonkearns/elm-graphql 3 | 4 | 5 | module Github.Object.MarketplaceListingEdge exposing (..) 6 | 7 | import Github.InputObject 8 | import Github.Interface 9 | import Github.Object 10 | import Github.Scalar 11 | import Github.ScalarCodecs 12 | import Github.Union 13 | import Graphql.Internal.Builder.Argument as Argument exposing (Argument) 14 | import Graphql.Internal.Builder.Object as Object 15 | import Graphql.Internal.Encode as Encode exposing (Value) 16 | import Graphql.Operation exposing (RootMutation, RootQuery, RootSubscription) 17 | import Graphql.OptionalArgument exposing (OptionalArgument(..)) 18 | import Graphql.SelectionSet exposing (SelectionSet) 19 | import Json.Decode as Decode 20 | 21 | 22 | {-| A cursor for use in pagination. 23 | -} 24 | cursor : SelectionSet String Github.Object.MarketplaceListingEdge 25 | cursor = 26 | Object.selectionForField "String" "cursor" [] Decode.string 27 | 28 | 29 | {-| The item at the end of the edge. 30 | -} 31 | node : 32 | SelectionSet decodesTo Github.Object.MarketplaceListing 33 | -> SelectionSet (Maybe decodesTo) Github.Object.MarketplaceListingEdge 34 | node object____ = 35 | Object.selectionForCompositeField "node" [] object____ (Basics.identity >> Decode.nullable) 36 | -------------------------------------------------------------------------------- /examples/src/Github/Object/MilestoneEdge.elm: -------------------------------------------------------------------------------- 1 | -- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql 2 | -- https://github.com/dillonkearns/elm-graphql 3 | 4 | 5 | module Github.Object.MilestoneEdge exposing (..) 6 | 7 | import Github.InputObject 8 | import Github.Interface 9 | import Github.Object 10 | import Github.Scalar 11 | import Github.ScalarCodecs 12 | import Github.Union 13 | import Graphql.Internal.Builder.Argument as Argument exposing (Argument) 14 | import Graphql.Internal.Builder.Object as Object 15 | import Graphql.Internal.Encode as Encode exposing (Value) 16 | import Graphql.Operation exposing (RootMutation, RootQuery, RootSubscription) 17 | import Graphql.OptionalArgument exposing (OptionalArgument(..)) 18 | import Graphql.SelectionSet exposing (SelectionSet) 19 | import Json.Decode as Decode 20 | 21 | 22 | {-| A cursor for use in pagination. 23 | -} 24 | cursor : SelectionSet String Github.Object.MilestoneEdge 25 | cursor = 26 | Object.selectionForField "String" "cursor" [] Decode.string 27 | 28 | 29 | {-| The item at the end of the edge. 30 | -} 31 | node : 32 | SelectionSet decodesTo Github.Object.Milestone 33 | -> SelectionSet (Maybe decodesTo) Github.Object.MilestoneEdge 34 | node object____ = 35 | Object.selectionForCompositeField "node" [] object____ (Basics.identity >> Decode.nullable) 36 | -------------------------------------------------------------------------------- /examples/src/Github/Object/MoveProjectCardPayload.elm: -------------------------------------------------------------------------------- 1 | -- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql 2 | -- https://github.com/dillonkearns/elm-graphql 3 | 4 | 5 | module Github.Object.MoveProjectCardPayload exposing (..) 6 | 7 | import Github.InputObject 8 | import Github.Interface 9 | import Github.Object 10 | import Github.Scalar 11 | import Github.ScalarCodecs 12 | import Github.Union 13 | import Graphql.Internal.Builder.Argument as Argument exposing (Argument) 14 | import Graphql.Internal.Builder.Object as Object 15 | import Graphql.Internal.Encode as Encode exposing (Value) 16 | import Graphql.Operation exposing (RootMutation, RootQuery, RootSubscription) 17 | import Graphql.OptionalArgument exposing (OptionalArgument(..)) 18 | import Graphql.SelectionSet exposing (SelectionSet) 19 | import Json.Decode as Decode 20 | 21 | 22 | {-| The new edge of the moved card. 23 | -} 24 | cardEdge : 25 | SelectionSet decodesTo Github.Object.ProjectCardEdge 26 | -> SelectionSet decodesTo Github.Object.MoveProjectCardPayload 27 | cardEdge object____ = 28 | Object.selectionForCompositeField "cardEdge" [] object____ Basics.identity 29 | 30 | 31 | {-| A unique identifier for the client performing the mutation. 32 | -} 33 | clientMutationId : SelectionSet (Maybe String) Github.Object.MoveProjectCardPayload 34 | clientMutationId = 35 | Object.selectionForField "(Maybe String)" "clientMutationId" [] (Decode.string |> Decode.nullable) 36 | -------------------------------------------------------------------------------- /examples/src/Github/Object/MoveProjectColumnPayload.elm: -------------------------------------------------------------------------------- 1 | -- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql 2 | -- https://github.com/dillonkearns/elm-graphql 3 | 4 | 5 | module Github.Object.MoveProjectColumnPayload exposing (..) 6 | 7 | import Github.InputObject 8 | import Github.Interface 9 | import Github.Object 10 | import Github.Scalar 11 | import Github.ScalarCodecs 12 | import Github.Union 13 | import Graphql.Internal.Builder.Argument as Argument exposing (Argument) 14 | import Graphql.Internal.Builder.Object as Object 15 | import Graphql.Internal.Encode as Encode exposing (Value) 16 | import Graphql.Operation exposing (RootMutation, RootQuery, RootSubscription) 17 | import Graphql.OptionalArgument exposing (OptionalArgument(..)) 18 | import Graphql.SelectionSet exposing (SelectionSet) 19 | import Json.Decode as Decode 20 | 21 | 22 | {-| A unique identifier for the client performing the mutation. 23 | -} 24 | clientMutationId : SelectionSet (Maybe String) Github.Object.MoveProjectColumnPayload 25 | clientMutationId = 26 | Object.selectionForField "(Maybe String)" "clientMutationId" [] (Decode.string |> Decode.nullable) 27 | 28 | 29 | {-| The new edge of the moved column. 30 | -} 31 | columnEdge : 32 | SelectionSet decodesTo Github.Object.ProjectColumnEdge 33 | -> SelectionSet decodesTo Github.Object.MoveProjectColumnPayload 34 | columnEdge object____ = 35 | Object.selectionForCompositeField "columnEdge" [] object____ Basics.identity 36 | -------------------------------------------------------------------------------- /examples/src/Github/Object/OrganizationEdge.elm: -------------------------------------------------------------------------------- 1 | -- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql 2 | -- https://github.com/dillonkearns/elm-graphql 3 | 4 | 5 | module Github.Object.OrganizationEdge exposing (..) 6 | 7 | import Github.InputObject 8 | import Github.Interface 9 | import Github.Object 10 | import Github.Scalar 11 | import Github.ScalarCodecs 12 | import Github.Union 13 | import Graphql.Internal.Builder.Argument as Argument exposing (Argument) 14 | import Graphql.Internal.Builder.Object as Object 15 | import Graphql.Internal.Encode as Encode exposing (Value) 16 | import Graphql.Operation exposing (RootMutation, RootQuery, RootSubscription) 17 | import Graphql.OptionalArgument exposing (OptionalArgument(..)) 18 | import Graphql.SelectionSet exposing (SelectionSet) 19 | import Json.Decode as Decode 20 | 21 | 22 | {-| A cursor for use in pagination. 23 | -} 24 | cursor : SelectionSet String Github.Object.OrganizationEdge 25 | cursor = 26 | Object.selectionForField "String" "cursor" [] Decode.string 27 | 28 | 29 | {-| The item at the end of the edge. 30 | -} 31 | node : 32 | SelectionSet decodesTo Github.Object.Organization 33 | -> SelectionSet (Maybe decodesTo) Github.Object.OrganizationEdge 34 | node object____ = 35 | Object.selectionForCompositeField "node" [] object____ (Basics.identity >> Decode.nullable) 36 | -------------------------------------------------------------------------------- /examples/src/Github/Object/OrganizationInvitationEdge.elm: -------------------------------------------------------------------------------- 1 | -- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql 2 | -- https://github.com/dillonkearns/elm-graphql 3 | 4 | 5 | module Github.Object.OrganizationInvitationEdge exposing (..) 6 | 7 | import Github.InputObject 8 | import Github.Interface 9 | import Github.Object 10 | import Github.Scalar 11 | import Github.ScalarCodecs 12 | import Github.Union 13 | import Graphql.Internal.Builder.Argument as Argument exposing (Argument) 14 | import Graphql.Internal.Builder.Object as Object 15 | import Graphql.Internal.Encode as Encode exposing (Value) 16 | import Graphql.Operation exposing (RootMutation, RootQuery, RootSubscription) 17 | import Graphql.OptionalArgument exposing (OptionalArgument(..)) 18 | import Graphql.SelectionSet exposing (SelectionSet) 19 | import Json.Decode as Decode 20 | 21 | 22 | {-| A cursor for use in pagination. 23 | -} 24 | cursor : SelectionSet String Github.Object.OrganizationInvitationEdge 25 | cursor = 26 | Object.selectionForField "String" "cursor" [] Decode.string 27 | 28 | 29 | {-| The item at the end of the edge. 30 | -} 31 | node : 32 | SelectionSet decodesTo Github.Object.OrganizationInvitation 33 | -> SelectionSet (Maybe decodesTo) Github.Object.OrganizationInvitationEdge 34 | node object____ = 35 | Object.selectionForCompositeField "node" [] object____ (Basics.identity >> Decode.nullable) 36 | -------------------------------------------------------------------------------- /examples/src/Github/Object/ProjectCardEdge.elm: -------------------------------------------------------------------------------- 1 | -- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql 2 | -- https://github.com/dillonkearns/elm-graphql 3 | 4 | 5 | module Github.Object.ProjectCardEdge exposing (..) 6 | 7 | import Github.InputObject 8 | import Github.Interface 9 | import Github.Object 10 | import Github.Scalar 11 | import Github.ScalarCodecs 12 | import Github.Union 13 | import Graphql.Internal.Builder.Argument as Argument exposing (Argument) 14 | import Graphql.Internal.Builder.Object as Object 15 | import Graphql.Internal.Encode as Encode exposing (Value) 16 | import Graphql.Operation exposing (RootMutation, RootQuery, RootSubscription) 17 | import Graphql.OptionalArgument exposing (OptionalArgument(..)) 18 | import Graphql.SelectionSet exposing (SelectionSet) 19 | import Json.Decode as Decode 20 | 21 | 22 | {-| A cursor for use in pagination. 23 | -} 24 | cursor : SelectionSet String Github.Object.ProjectCardEdge 25 | cursor = 26 | Object.selectionForField "String" "cursor" [] Decode.string 27 | 28 | 29 | {-| The item at the end of the edge. 30 | -} 31 | node : 32 | SelectionSet decodesTo Github.Object.ProjectCard 33 | -> SelectionSet (Maybe decodesTo) Github.Object.ProjectCardEdge 34 | node object____ = 35 | Object.selectionForCompositeField "node" [] object____ (Basics.identity >> Decode.nullable) 36 | -------------------------------------------------------------------------------- /examples/src/Github/Object/ProjectColumnEdge.elm: -------------------------------------------------------------------------------- 1 | -- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql 2 | -- https://github.com/dillonkearns/elm-graphql 3 | 4 | 5 | module Github.Object.ProjectColumnEdge exposing (..) 6 | 7 | import Github.InputObject 8 | import Github.Interface 9 | import Github.Object 10 | import Github.Scalar 11 | import Github.ScalarCodecs 12 | import Github.Union 13 | import Graphql.Internal.Builder.Argument as Argument exposing (Argument) 14 | import Graphql.Internal.Builder.Object as Object 15 | import Graphql.Internal.Encode as Encode exposing (Value) 16 | import Graphql.Operation exposing (RootMutation, RootQuery, RootSubscription) 17 | import Graphql.OptionalArgument exposing (OptionalArgument(..)) 18 | import Graphql.SelectionSet exposing (SelectionSet) 19 | import Json.Decode as Decode 20 | 21 | 22 | {-| A cursor for use in pagination. 23 | -} 24 | cursor : SelectionSet String Github.Object.ProjectColumnEdge 25 | cursor = 26 | Object.selectionForField "String" "cursor" [] Decode.string 27 | 28 | 29 | {-| The item at the end of the edge. 30 | -} 31 | node : 32 | SelectionSet decodesTo Github.Object.ProjectColumn 33 | -> SelectionSet (Maybe decodesTo) Github.Object.ProjectColumnEdge 34 | node object____ = 35 | Object.selectionForCompositeField "node" [] object____ (Basics.identity >> Decode.nullable) 36 | -------------------------------------------------------------------------------- /examples/src/Github/Object/ProjectEdge.elm: -------------------------------------------------------------------------------- 1 | -- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql 2 | -- https://github.com/dillonkearns/elm-graphql 3 | 4 | 5 | module Github.Object.ProjectEdge exposing (..) 6 | 7 | import Github.InputObject 8 | import Github.Interface 9 | import Github.Object 10 | import Github.Scalar 11 | import Github.ScalarCodecs 12 | import Github.Union 13 | import Graphql.Internal.Builder.Argument as Argument exposing (Argument) 14 | import Graphql.Internal.Builder.Object as Object 15 | import Graphql.Internal.Encode as Encode exposing (Value) 16 | import Graphql.Operation exposing (RootMutation, RootQuery, RootSubscription) 17 | import Graphql.OptionalArgument exposing (OptionalArgument(..)) 18 | import Graphql.SelectionSet exposing (SelectionSet) 19 | import Json.Decode as Decode 20 | 21 | 22 | {-| A cursor for use in pagination. 23 | -} 24 | cursor : SelectionSet String Github.Object.ProjectEdge 25 | cursor = 26 | Object.selectionForField "String" "cursor" [] Decode.string 27 | 28 | 29 | {-| The item at the end of the edge. 30 | -} 31 | node : 32 | SelectionSet decodesTo Github.Object.Project 33 | -> SelectionSet (Maybe decodesTo) Github.Object.ProjectEdge 34 | node object____ = 35 | Object.selectionForCompositeField "node" [] object____ (Basics.identity >> Decode.nullable) 36 | -------------------------------------------------------------------------------- /examples/src/Github/Object/ProtectedBranchEdge.elm: -------------------------------------------------------------------------------- 1 | -- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql 2 | -- https://github.com/dillonkearns/elm-graphql 3 | 4 | 5 | module Github.Object.ProtectedBranchEdge exposing (..) 6 | 7 | import Github.InputObject 8 | import Github.Interface 9 | import Github.Object 10 | import Github.Scalar 11 | import Github.ScalarCodecs 12 | import Github.Union 13 | import Graphql.Internal.Builder.Argument as Argument exposing (Argument) 14 | import Graphql.Internal.Builder.Object as Object 15 | import Graphql.Internal.Encode as Encode exposing (Value) 16 | import Graphql.Operation exposing (RootMutation, RootQuery, RootSubscription) 17 | import Graphql.OptionalArgument exposing (OptionalArgument(..)) 18 | import Graphql.SelectionSet exposing (SelectionSet) 19 | import Json.Decode as Decode 20 | 21 | 22 | {-| A cursor for use in pagination. 23 | -} 24 | cursor : SelectionSet String Github.Object.ProtectedBranchEdge 25 | cursor = 26 | Object.selectionForField "String" "cursor" [] Decode.string 27 | 28 | 29 | {-| The item at the end of the edge. 30 | -} 31 | node : 32 | SelectionSet decodesTo Github.Object.ProtectedBranch 33 | -> SelectionSet (Maybe decodesTo) Github.Object.ProtectedBranchEdge 34 | node object____ = 35 | Object.selectionForCompositeField "node" [] object____ (Basics.identity >> Decode.nullable) 36 | -------------------------------------------------------------------------------- /examples/src/Github/Object/PublicKey.elm: -------------------------------------------------------------------------------- 1 | -- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql 2 | -- https://github.com/dillonkearns/elm-graphql 3 | 4 | 5 | module Github.Object.PublicKey exposing (..) 6 | 7 | import Github.InputObject 8 | import Github.Interface 9 | import Github.Object 10 | import Github.Scalar 11 | import Github.ScalarCodecs 12 | import Github.Union 13 | import Graphql.Internal.Builder.Argument as Argument exposing (Argument) 14 | import Graphql.Internal.Builder.Object as Object 15 | import Graphql.Internal.Encode as Encode exposing (Value) 16 | import Graphql.Operation exposing (RootMutation, RootQuery, RootSubscription) 17 | import Graphql.OptionalArgument exposing (OptionalArgument(..)) 18 | import Graphql.SelectionSet exposing (SelectionSet) 19 | import Json.Decode as Decode 20 | 21 | 22 | id : SelectionSet Github.ScalarCodecs.Id Github.Object.PublicKey 23 | id = 24 | Object.selectionForField "ScalarCodecs.Id" "id" [] (Github.ScalarCodecs.codecs |> Github.Scalar.unwrapCodecs |> .codecId |> .decoder) 25 | 26 | 27 | {-| The public key string 28 | -} 29 | key : SelectionSet String Github.Object.PublicKey 30 | key = 31 | Object.selectionForField "String" "key" [] Decode.string 32 | -------------------------------------------------------------------------------- /examples/src/Github/Object/PublicKeyEdge.elm: -------------------------------------------------------------------------------- 1 | -- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql 2 | -- https://github.com/dillonkearns/elm-graphql 3 | 4 | 5 | module Github.Object.PublicKeyEdge exposing (..) 6 | 7 | import Github.InputObject 8 | import Github.Interface 9 | import Github.Object 10 | import Github.Scalar 11 | import Github.ScalarCodecs 12 | import Github.Union 13 | import Graphql.Internal.Builder.Argument as Argument exposing (Argument) 14 | import Graphql.Internal.Builder.Object as Object 15 | import Graphql.Internal.Encode as Encode exposing (Value) 16 | import Graphql.Operation exposing (RootMutation, RootQuery, RootSubscription) 17 | import Graphql.OptionalArgument exposing (OptionalArgument(..)) 18 | import Graphql.SelectionSet exposing (SelectionSet) 19 | import Json.Decode as Decode 20 | 21 | 22 | {-| A cursor for use in pagination. 23 | -} 24 | cursor : SelectionSet String Github.Object.PublicKeyEdge 25 | cursor = 26 | Object.selectionForField "String" "cursor" [] Decode.string 27 | 28 | 29 | {-| The item at the end of the edge. 30 | -} 31 | node : 32 | SelectionSet decodesTo Github.Object.PublicKey 33 | -> SelectionSet (Maybe decodesTo) Github.Object.PublicKeyEdge 34 | node object____ = 35 | Object.selectionForCompositeField "node" [] object____ (Basics.identity >> Decode.nullable) 36 | -------------------------------------------------------------------------------- /examples/src/Github/Object/PullRequestCommitEdge.elm: -------------------------------------------------------------------------------- 1 | -- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql 2 | -- https://github.com/dillonkearns/elm-graphql 3 | 4 | 5 | module Github.Object.PullRequestCommitEdge exposing (..) 6 | 7 | import Github.InputObject 8 | import Github.Interface 9 | import Github.Object 10 | import Github.Scalar 11 | import Github.ScalarCodecs 12 | import Github.Union 13 | import Graphql.Internal.Builder.Argument as Argument exposing (Argument) 14 | import Graphql.Internal.Builder.Object as Object 15 | import Graphql.Internal.Encode as Encode exposing (Value) 16 | import Graphql.Operation exposing (RootMutation, RootQuery, RootSubscription) 17 | import Graphql.OptionalArgument exposing (OptionalArgument(..)) 18 | import Graphql.SelectionSet exposing (SelectionSet) 19 | import Json.Decode as Decode 20 | 21 | 22 | {-| A cursor for use in pagination. 23 | -} 24 | cursor : SelectionSet String Github.Object.PullRequestCommitEdge 25 | cursor = 26 | Object.selectionForField "String" "cursor" [] Decode.string 27 | 28 | 29 | {-| The item at the end of the edge. 30 | -} 31 | node : 32 | SelectionSet decodesTo Github.Object.PullRequestCommit 33 | -> SelectionSet (Maybe decodesTo) Github.Object.PullRequestCommitEdge 34 | node object____ = 35 | Object.selectionForCompositeField "node" [] object____ (Basics.identity >> Decode.nullable) 36 | -------------------------------------------------------------------------------- /examples/src/Github/Object/PullRequestEdge.elm: -------------------------------------------------------------------------------- 1 | -- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql 2 | -- https://github.com/dillonkearns/elm-graphql 3 | 4 | 5 | module Github.Object.PullRequestEdge exposing (..) 6 | 7 | import Github.InputObject 8 | import Github.Interface 9 | import Github.Object 10 | import Github.Scalar 11 | import Github.ScalarCodecs 12 | import Github.Union 13 | import Graphql.Internal.Builder.Argument as Argument exposing (Argument) 14 | import Graphql.Internal.Builder.Object as Object 15 | import Graphql.Internal.Encode as Encode exposing (Value) 16 | import Graphql.Operation exposing (RootMutation, RootQuery, RootSubscription) 17 | import Graphql.OptionalArgument exposing (OptionalArgument(..)) 18 | import Graphql.SelectionSet exposing (SelectionSet) 19 | import Json.Decode as Decode 20 | 21 | 22 | {-| A cursor for use in pagination. 23 | -} 24 | cursor : SelectionSet String Github.Object.PullRequestEdge 25 | cursor = 26 | Object.selectionForField "String" "cursor" [] Decode.string 27 | 28 | 29 | {-| The item at the end of the edge. 30 | -} 31 | node : 32 | SelectionSet decodesTo Github.Object.PullRequest 33 | -> SelectionSet (Maybe decodesTo) Github.Object.PullRequestEdge 34 | node object____ = 35 | Object.selectionForCompositeField "node" [] object____ (Basics.identity >> Decode.nullable) 36 | -------------------------------------------------------------------------------- /examples/src/Github/Object/PullRequestReviewCommentEdge.elm: -------------------------------------------------------------------------------- 1 | -- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql 2 | -- https://github.com/dillonkearns/elm-graphql 3 | 4 | 5 | module Github.Object.PullRequestReviewCommentEdge exposing (..) 6 | 7 | import Github.InputObject 8 | import Github.Interface 9 | import Github.Object 10 | import Github.Scalar 11 | import Github.ScalarCodecs 12 | import Github.Union 13 | import Graphql.Internal.Builder.Argument as Argument exposing (Argument) 14 | import Graphql.Internal.Builder.Object as Object 15 | import Graphql.Internal.Encode as Encode exposing (Value) 16 | import Graphql.Operation exposing (RootMutation, RootQuery, RootSubscription) 17 | import Graphql.OptionalArgument exposing (OptionalArgument(..)) 18 | import Graphql.SelectionSet exposing (SelectionSet) 19 | import Json.Decode as Decode 20 | 21 | 22 | {-| A cursor for use in pagination. 23 | -} 24 | cursor : SelectionSet String Github.Object.PullRequestReviewCommentEdge 25 | cursor = 26 | Object.selectionForField "String" "cursor" [] Decode.string 27 | 28 | 29 | {-| The item at the end of the edge. 30 | -} 31 | node : 32 | SelectionSet decodesTo Github.Object.PullRequestReviewComment 33 | -> SelectionSet (Maybe decodesTo) Github.Object.PullRequestReviewCommentEdge 34 | node object____ = 35 | Object.selectionForCompositeField "node" [] object____ (Basics.identity >> Decode.nullable) 36 | -------------------------------------------------------------------------------- /examples/src/Github/Object/PullRequestReviewEdge.elm: -------------------------------------------------------------------------------- 1 | -- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql 2 | -- https://github.com/dillonkearns/elm-graphql 3 | 4 | 5 | module Github.Object.PullRequestReviewEdge exposing (..) 6 | 7 | import Github.InputObject 8 | import Github.Interface 9 | import Github.Object 10 | import Github.Scalar 11 | import Github.ScalarCodecs 12 | import Github.Union 13 | import Graphql.Internal.Builder.Argument as Argument exposing (Argument) 14 | import Graphql.Internal.Builder.Object as Object 15 | import Graphql.Internal.Encode as Encode exposing (Value) 16 | import Graphql.Operation exposing (RootMutation, RootQuery, RootSubscription) 17 | import Graphql.OptionalArgument exposing (OptionalArgument(..)) 18 | import Graphql.SelectionSet exposing (SelectionSet) 19 | import Json.Decode as Decode 20 | 21 | 22 | {-| A cursor for use in pagination. 23 | -} 24 | cursor : SelectionSet String Github.Object.PullRequestReviewEdge 25 | cursor = 26 | Object.selectionForField "String" "cursor" [] Decode.string 27 | 28 | 29 | {-| The item at the end of the edge. 30 | -} 31 | node : 32 | SelectionSet decodesTo Github.Object.PullRequestReview 33 | -> SelectionSet (Maybe decodesTo) Github.Object.PullRequestReviewEdge 34 | node object____ = 35 | Object.selectionForCompositeField "node" [] object____ (Basics.identity >> Decode.nullable) 36 | -------------------------------------------------------------------------------- /examples/src/Github/Object/PullRequestTimelineItemEdge.elm: -------------------------------------------------------------------------------- 1 | -- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql 2 | -- https://github.com/dillonkearns/elm-graphql 3 | 4 | 5 | module Github.Object.PullRequestTimelineItemEdge exposing (..) 6 | 7 | import Github.InputObject 8 | import Github.Interface 9 | import Github.Object 10 | import Github.Scalar 11 | import Github.ScalarCodecs 12 | import Github.Union 13 | import Graphql.Internal.Builder.Argument as Argument exposing (Argument) 14 | import Graphql.Internal.Builder.Object as Object 15 | import Graphql.Internal.Encode as Encode exposing (Value) 16 | import Graphql.Operation exposing (RootMutation, RootQuery, RootSubscription) 17 | import Graphql.OptionalArgument exposing (OptionalArgument(..)) 18 | import Graphql.SelectionSet exposing (SelectionSet) 19 | import Json.Decode as Decode 20 | 21 | 22 | {-| A cursor for use in pagination. 23 | -} 24 | cursor : SelectionSet String Github.Object.PullRequestTimelineItemEdge 25 | cursor = 26 | Object.selectionForField "String" "cursor" [] Decode.string 27 | 28 | 29 | {-| The item at the end of the edge. 30 | -} 31 | node : 32 | SelectionSet decodesTo Github.Union.PullRequestTimelineItem 33 | -> SelectionSet (Maybe decodesTo) Github.Object.PullRequestTimelineItemEdge 34 | node object____ = 35 | Object.selectionForCompositeField "node" [] object____ (Basics.identity >> Decode.nullable) 36 | -------------------------------------------------------------------------------- /examples/src/Github/Object/PushAllowanceEdge.elm: -------------------------------------------------------------------------------- 1 | -- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql 2 | -- https://github.com/dillonkearns/elm-graphql 3 | 4 | 5 | module Github.Object.PushAllowanceEdge exposing (..) 6 | 7 | import Github.InputObject 8 | import Github.Interface 9 | import Github.Object 10 | import Github.Scalar 11 | import Github.ScalarCodecs 12 | import Github.Union 13 | import Graphql.Internal.Builder.Argument as Argument exposing (Argument) 14 | import Graphql.Internal.Builder.Object as Object 15 | import Graphql.Internal.Encode as Encode exposing (Value) 16 | import Graphql.Operation exposing (RootMutation, RootQuery, RootSubscription) 17 | import Graphql.OptionalArgument exposing (OptionalArgument(..)) 18 | import Graphql.SelectionSet exposing (SelectionSet) 19 | import Json.Decode as Decode 20 | 21 | 22 | {-| A cursor for use in pagination. 23 | -} 24 | cursor : SelectionSet String Github.Object.PushAllowanceEdge 25 | cursor = 26 | Object.selectionForField "String" "cursor" [] Decode.string 27 | 28 | 29 | {-| The item at the end of the edge. 30 | -} 31 | node : 32 | SelectionSet decodesTo Github.Object.PushAllowance 33 | -> SelectionSet (Maybe decodesTo) Github.Object.PushAllowanceEdge 34 | node object____ = 35 | Object.selectionForCompositeField "node" [] object____ (Basics.identity >> Decode.nullable) 36 | -------------------------------------------------------------------------------- /examples/src/Github/Object/ReactionEdge.elm: -------------------------------------------------------------------------------- 1 | -- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql 2 | -- https://github.com/dillonkearns/elm-graphql 3 | 4 | 5 | module Github.Object.ReactionEdge exposing (..) 6 | 7 | import Github.InputObject 8 | import Github.Interface 9 | import Github.Object 10 | import Github.Scalar 11 | import Github.ScalarCodecs 12 | import Github.Union 13 | import Graphql.Internal.Builder.Argument as Argument exposing (Argument) 14 | import Graphql.Internal.Builder.Object as Object 15 | import Graphql.Internal.Encode as Encode exposing (Value) 16 | import Graphql.Operation exposing (RootMutation, RootQuery, RootSubscription) 17 | import Graphql.OptionalArgument exposing (OptionalArgument(..)) 18 | import Graphql.SelectionSet exposing (SelectionSet) 19 | import Json.Decode as Decode 20 | 21 | 22 | {-| A cursor for use in pagination. 23 | -} 24 | cursor : SelectionSet String Github.Object.ReactionEdge 25 | cursor = 26 | Object.selectionForField "String" "cursor" [] Decode.string 27 | 28 | 29 | {-| The item at the end of the edge. 30 | -} 31 | node : 32 | SelectionSet decodesTo Github.Object.Reaction 33 | -> SelectionSet (Maybe decodesTo) Github.Object.ReactionEdge 34 | node object____ = 35 | Object.selectionForCompositeField "node" [] object____ (Basics.identity >> Decode.nullable) 36 | -------------------------------------------------------------------------------- /examples/src/Github/Object/RefEdge.elm: -------------------------------------------------------------------------------- 1 | -- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql 2 | -- https://github.com/dillonkearns/elm-graphql 3 | 4 | 5 | module Github.Object.RefEdge exposing (..) 6 | 7 | import Github.InputObject 8 | import Github.Interface 9 | import Github.Object 10 | import Github.Scalar 11 | import Github.ScalarCodecs 12 | import Github.Union 13 | import Graphql.Internal.Builder.Argument as Argument exposing (Argument) 14 | import Graphql.Internal.Builder.Object as Object 15 | import Graphql.Internal.Encode as Encode exposing (Value) 16 | import Graphql.Operation exposing (RootMutation, RootQuery, RootSubscription) 17 | import Graphql.OptionalArgument exposing (OptionalArgument(..)) 18 | import Graphql.SelectionSet exposing (SelectionSet) 19 | import Json.Decode as Decode 20 | 21 | 22 | {-| A cursor for use in pagination. 23 | -} 24 | cursor : SelectionSet String Github.Object.RefEdge 25 | cursor = 26 | Object.selectionForField "String" "cursor" [] Decode.string 27 | 28 | 29 | {-| The item at the end of the edge. 30 | -} 31 | node : 32 | SelectionSet decodesTo Github.Object.Ref 33 | -> SelectionSet (Maybe decodesTo) Github.Object.RefEdge 34 | node object____ = 35 | Object.selectionForCompositeField "node" [] object____ (Basics.identity >> Decode.nullable) 36 | -------------------------------------------------------------------------------- /examples/src/Github/Object/ReleaseAssetEdge.elm: -------------------------------------------------------------------------------- 1 | -- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql 2 | -- https://github.com/dillonkearns/elm-graphql 3 | 4 | 5 | module Github.Object.ReleaseAssetEdge exposing (..) 6 | 7 | import Github.InputObject 8 | import Github.Interface 9 | import Github.Object 10 | import Github.Scalar 11 | import Github.ScalarCodecs 12 | import Github.Union 13 | import Graphql.Internal.Builder.Argument as Argument exposing (Argument) 14 | import Graphql.Internal.Builder.Object as Object 15 | import Graphql.Internal.Encode as Encode exposing (Value) 16 | import Graphql.Operation exposing (RootMutation, RootQuery, RootSubscription) 17 | import Graphql.OptionalArgument exposing (OptionalArgument(..)) 18 | import Graphql.SelectionSet exposing (SelectionSet) 19 | import Json.Decode as Decode 20 | 21 | 22 | {-| A cursor for use in pagination. 23 | -} 24 | cursor : SelectionSet String Github.Object.ReleaseAssetEdge 25 | cursor = 26 | Object.selectionForField "String" "cursor" [] Decode.string 27 | 28 | 29 | {-| The item at the end of the edge. 30 | -} 31 | node : 32 | SelectionSet decodesTo Github.Object.ReleaseAsset 33 | -> SelectionSet (Maybe decodesTo) Github.Object.ReleaseAssetEdge 34 | node object____ = 35 | Object.selectionForCompositeField "node" [] object____ (Basics.identity >> Decode.nullable) 36 | -------------------------------------------------------------------------------- /examples/src/Github/Object/ReleaseEdge.elm: -------------------------------------------------------------------------------- 1 | -- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql 2 | -- https://github.com/dillonkearns/elm-graphql 3 | 4 | 5 | module Github.Object.ReleaseEdge exposing (..) 6 | 7 | import Github.InputObject 8 | import Github.Interface 9 | import Github.Object 10 | import Github.Scalar 11 | import Github.ScalarCodecs 12 | import Github.Union 13 | import Graphql.Internal.Builder.Argument as Argument exposing (Argument) 14 | import Graphql.Internal.Builder.Object as Object 15 | import Graphql.Internal.Encode as Encode exposing (Value) 16 | import Graphql.Operation exposing (RootMutation, RootQuery, RootSubscription) 17 | import Graphql.OptionalArgument exposing (OptionalArgument(..)) 18 | import Graphql.SelectionSet exposing (SelectionSet) 19 | import Json.Decode as Decode 20 | 21 | 22 | {-| A cursor for use in pagination. 23 | -} 24 | cursor : SelectionSet String Github.Object.ReleaseEdge 25 | cursor = 26 | Object.selectionForField "String" "cursor" [] Decode.string 27 | 28 | 29 | {-| The item at the end of the edge. 30 | -} 31 | node : 32 | SelectionSet decodesTo Github.Object.Release 33 | -> SelectionSet (Maybe decodesTo) Github.Object.ReleaseEdge 34 | node object____ = 35 | Object.selectionForCompositeField "node" [] object____ (Basics.identity >> Decode.nullable) 36 | -------------------------------------------------------------------------------- /examples/src/Github/Object/RemoveStarPayload.elm: -------------------------------------------------------------------------------- 1 | -- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql 2 | -- https://github.com/dillonkearns/elm-graphql 3 | 4 | 5 | module Github.Object.RemoveStarPayload exposing (..) 6 | 7 | import Github.InputObject 8 | import Github.Interface 9 | import Github.Object 10 | import Github.Scalar 11 | import Github.ScalarCodecs 12 | import Github.Union 13 | import Graphql.Internal.Builder.Argument as Argument exposing (Argument) 14 | import Graphql.Internal.Builder.Object as Object 15 | import Graphql.Internal.Encode as Encode exposing (Value) 16 | import Graphql.Operation exposing (RootMutation, RootQuery, RootSubscription) 17 | import Graphql.OptionalArgument exposing (OptionalArgument(..)) 18 | import Graphql.SelectionSet exposing (SelectionSet) 19 | import Json.Decode as Decode 20 | 21 | 22 | {-| A unique identifier for the client performing the mutation. 23 | -} 24 | clientMutationId : SelectionSet (Maybe String) Github.Object.RemoveStarPayload 25 | clientMutationId = 26 | Object.selectionForField "(Maybe String)" "clientMutationId" [] (Decode.string |> Decode.nullable) 27 | 28 | 29 | {-| The starrable. 30 | -} 31 | starrable : 32 | SelectionSet decodesTo Github.Interface.Starrable 33 | -> SelectionSet decodesTo Github.Object.RemoveStarPayload 34 | starrable object____ = 35 | Object.selectionForCompositeField "starrable" [] object____ Basics.identity 36 | -------------------------------------------------------------------------------- /examples/src/Github/Object/RepositoryEdge.elm: -------------------------------------------------------------------------------- 1 | -- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql 2 | -- https://github.com/dillonkearns/elm-graphql 3 | 4 | 5 | module Github.Object.RepositoryEdge exposing (..) 6 | 7 | import Github.InputObject 8 | import Github.Interface 9 | import Github.Object 10 | import Github.Scalar 11 | import Github.ScalarCodecs 12 | import Github.Union 13 | import Graphql.Internal.Builder.Argument as Argument exposing (Argument) 14 | import Graphql.Internal.Builder.Object as Object 15 | import Graphql.Internal.Encode as Encode exposing (Value) 16 | import Graphql.Operation exposing (RootMutation, RootQuery, RootSubscription) 17 | import Graphql.OptionalArgument exposing (OptionalArgument(..)) 18 | import Graphql.SelectionSet exposing (SelectionSet) 19 | import Json.Decode as Decode 20 | 21 | 22 | {-| A cursor for use in pagination. 23 | -} 24 | cursor : SelectionSet String Github.Object.RepositoryEdge 25 | cursor = 26 | Object.selectionForField "String" "cursor" [] Decode.string 27 | 28 | 29 | {-| The item at the end of the edge. 30 | -} 31 | node : 32 | SelectionSet decodesTo Github.Object.Repository 33 | -> SelectionSet (Maybe decodesTo) Github.Object.RepositoryEdge 34 | node object____ = 35 | Object.selectionForCompositeField "node" [] object____ (Basics.identity >> Decode.nullable) 36 | -------------------------------------------------------------------------------- /examples/src/Github/Object/RepositoryTopicEdge.elm: -------------------------------------------------------------------------------- 1 | -- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql 2 | -- https://github.com/dillonkearns/elm-graphql 3 | 4 | 5 | module Github.Object.RepositoryTopicEdge exposing (..) 6 | 7 | import Github.InputObject 8 | import Github.Interface 9 | import Github.Object 10 | import Github.Scalar 11 | import Github.ScalarCodecs 12 | import Github.Union 13 | import Graphql.Internal.Builder.Argument as Argument exposing (Argument) 14 | import Graphql.Internal.Builder.Object as Object 15 | import Graphql.Internal.Encode as Encode exposing (Value) 16 | import Graphql.Operation exposing (RootMutation, RootQuery, RootSubscription) 17 | import Graphql.OptionalArgument exposing (OptionalArgument(..)) 18 | import Graphql.SelectionSet exposing (SelectionSet) 19 | import Json.Decode as Decode 20 | 21 | 22 | {-| A cursor for use in pagination. 23 | -} 24 | cursor : SelectionSet String Github.Object.RepositoryTopicEdge 25 | cursor = 26 | Object.selectionForField "String" "cursor" [] Decode.string 27 | 28 | 29 | {-| The item at the end of the edge. 30 | -} 31 | node : 32 | SelectionSet decodesTo Github.Object.RepositoryTopic 33 | -> SelectionSet (Maybe decodesTo) Github.Object.RepositoryTopicEdge 34 | node object____ = 35 | Object.selectionForCompositeField "node" [] object____ (Basics.identity >> Decode.nullable) 36 | -------------------------------------------------------------------------------- /examples/src/Github/Object/ReviewDismissalAllowanceEdge.elm: -------------------------------------------------------------------------------- 1 | -- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql 2 | -- https://github.com/dillonkearns/elm-graphql 3 | 4 | 5 | module Github.Object.ReviewDismissalAllowanceEdge exposing (..) 6 | 7 | import Github.InputObject 8 | import Github.Interface 9 | import Github.Object 10 | import Github.Scalar 11 | import Github.ScalarCodecs 12 | import Github.Union 13 | import Graphql.Internal.Builder.Argument as Argument exposing (Argument) 14 | import Graphql.Internal.Builder.Object as Object 15 | import Graphql.Internal.Encode as Encode exposing (Value) 16 | import Graphql.Operation exposing (RootMutation, RootQuery, RootSubscription) 17 | import Graphql.OptionalArgument exposing (OptionalArgument(..)) 18 | import Graphql.SelectionSet exposing (SelectionSet) 19 | import Json.Decode as Decode 20 | 21 | 22 | {-| A cursor for use in pagination. 23 | -} 24 | cursor : SelectionSet String Github.Object.ReviewDismissalAllowanceEdge 25 | cursor = 26 | Object.selectionForField "String" "cursor" [] Decode.string 27 | 28 | 29 | {-| The item at the end of the edge. 30 | -} 31 | node : 32 | SelectionSet decodesTo Github.Object.ReviewDismissalAllowance 33 | -> SelectionSet (Maybe decodesTo) Github.Object.ReviewDismissalAllowanceEdge 34 | node object____ = 35 | Object.selectionForCompositeField "node" [] object____ (Basics.identity >> Decode.nullable) 36 | -------------------------------------------------------------------------------- /examples/src/Github/Object/ReviewRequestEdge.elm: -------------------------------------------------------------------------------- 1 | -- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql 2 | -- https://github.com/dillonkearns/elm-graphql 3 | 4 | 5 | module Github.Object.ReviewRequestEdge exposing (..) 6 | 7 | import Github.InputObject 8 | import Github.Interface 9 | import Github.Object 10 | import Github.Scalar 11 | import Github.ScalarCodecs 12 | import Github.Union 13 | import Graphql.Internal.Builder.Argument as Argument exposing (Argument) 14 | import Graphql.Internal.Builder.Object as Object 15 | import Graphql.Internal.Encode as Encode exposing (Value) 16 | import Graphql.Operation exposing (RootMutation, RootQuery, RootSubscription) 17 | import Graphql.OptionalArgument exposing (OptionalArgument(..)) 18 | import Graphql.SelectionSet exposing (SelectionSet) 19 | import Json.Decode as Decode 20 | 21 | 22 | {-| A cursor for use in pagination. 23 | -} 24 | cursor : SelectionSet String Github.Object.ReviewRequestEdge 25 | cursor = 26 | Object.selectionForField "String" "cursor" [] Decode.string 27 | 28 | 29 | {-| The item at the end of the edge. 30 | -} 31 | node : 32 | SelectionSet decodesTo Github.Object.ReviewRequest 33 | -> SelectionSet (Maybe decodesTo) Github.Object.ReviewRequestEdge 34 | node object____ = 35 | Object.selectionForCompositeField "node" [] object____ (Basics.identity >> Decode.nullable) 36 | -------------------------------------------------------------------------------- /examples/src/Github/Object/TeamEdge.elm: -------------------------------------------------------------------------------- 1 | -- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql 2 | -- https://github.com/dillonkearns/elm-graphql 3 | 4 | 5 | module Github.Object.TeamEdge exposing (..) 6 | 7 | import Github.InputObject 8 | import Github.Interface 9 | import Github.Object 10 | import Github.Scalar 11 | import Github.ScalarCodecs 12 | import Github.Union 13 | import Graphql.Internal.Builder.Argument as Argument exposing (Argument) 14 | import Graphql.Internal.Builder.Object as Object 15 | import Graphql.Internal.Encode as Encode exposing (Value) 16 | import Graphql.Operation exposing (RootMutation, RootQuery, RootSubscription) 17 | import Graphql.OptionalArgument exposing (OptionalArgument(..)) 18 | import Graphql.SelectionSet exposing (SelectionSet) 19 | import Json.Decode as Decode 20 | 21 | 22 | {-| A cursor for use in pagination. 23 | -} 24 | cursor : SelectionSet String Github.Object.TeamEdge 25 | cursor = 26 | Object.selectionForField "String" "cursor" [] Decode.string 27 | 28 | 29 | {-| The item at the end of the edge. 30 | -} 31 | node : 32 | SelectionSet decodesTo Github.Object.Team 33 | -> SelectionSet (Maybe decodesTo) Github.Object.TeamEdge 34 | node object____ = 35 | Object.selectionForCompositeField "node" [] object____ (Basics.identity >> Decode.nullable) 36 | -------------------------------------------------------------------------------- /examples/src/Github/Object/TextMatchHighlight.elm: -------------------------------------------------------------------------------- 1 | -- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql 2 | -- https://github.com/dillonkearns/elm-graphql 3 | 4 | 5 | module Github.Object.TextMatchHighlight exposing (..) 6 | 7 | import Github.InputObject 8 | import Github.Interface 9 | import Github.Object 10 | import Github.Scalar 11 | import Github.ScalarCodecs 12 | import Github.Union 13 | import Graphql.Internal.Builder.Argument as Argument exposing (Argument) 14 | import Graphql.Internal.Builder.Object as Object 15 | import Graphql.Internal.Encode as Encode exposing (Value) 16 | import Graphql.Operation exposing (RootMutation, RootQuery, RootSubscription) 17 | import Graphql.OptionalArgument exposing (OptionalArgument(..)) 18 | import Graphql.SelectionSet exposing (SelectionSet) 19 | import Json.Decode as Decode 20 | 21 | 22 | {-| The indice in the fragment where the matched text begins. 23 | -} 24 | beginIndice : SelectionSet Int Github.Object.TextMatchHighlight 25 | beginIndice = 26 | Object.selectionForField "Int" "beginIndice" [] Decode.int 27 | 28 | 29 | {-| The indice in the fragment where the matched text ends. 30 | -} 31 | endIndice : SelectionSet Int Github.Object.TextMatchHighlight 32 | endIndice = 33 | Object.selectionForField "Int" "endIndice" [] Decode.int 34 | 35 | 36 | {-| The text matched. 37 | -} 38 | text : SelectionSet String Github.Object.TextMatchHighlight 39 | text = 40 | Object.selectionForField "String" "text" [] Decode.string 41 | -------------------------------------------------------------------------------- /examples/src/Github/Object/TopicEdge.elm: -------------------------------------------------------------------------------- 1 | -- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql 2 | -- https://github.com/dillonkearns/elm-graphql 3 | 4 | 5 | module Github.Object.TopicEdge exposing (..) 6 | 7 | import Github.InputObject 8 | import Github.Interface 9 | import Github.Object 10 | import Github.Scalar 11 | import Github.ScalarCodecs 12 | import Github.Union 13 | import Graphql.Internal.Builder.Argument as Argument exposing (Argument) 14 | import Graphql.Internal.Builder.Object as Object 15 | import Graphql.Internal.Encode as Encode exposing (Value) 16 | import Graphql.Operation exposing (RootMutation, RootQuery, RootSubscription) 17 | import Graphql.OptionalArgument exposing (OptionalArgument(..)) 18 | import Graphql.SelectionSet exposing (SelectionSet) 19 | import Json.Decode as Decode 20 | 21 | 22 | {-| A cursor for use in pagination. 23 | -} 24 | cursor : SelectionSet String Github.Object.TopicEdge 25 | cursor = 26 | Object.selectionForField "String" "cursor" [] Decode.string 27 | 28 | 29 | {-| The item at the end of the edge. 30 | -} 31 | node : 32 | SelectionSet decodesTo Github.Object.Topic 33 | -> SelectionSet (Maybe decodesTo) Github.Object.TopicEdge 34 | node object____ = 35 | Object.selectionForCompositeField "node" [] object____ (Basics.identity >> Decode.nullable) 36 | -------------------------------------------------------------------------------- /examples/src/Github/Object/UpdateProjectCardPayload.elm: -------------------------------------------------------------------------------- 1 | -- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql 2 | -- https://github.com/dillonkearns/elm-graphql 3 | 4 | 5 | module Github.Object.UpdateProjectCardPayload exposing (..) 6 | 7 | import Github.InputObject 8 | import Github.Interface 9 | import Github.Object 10 | import Github.Scalar 11 | import Github.ScalarCodecs 12 | import Github.Union 13 | import Graphql.Internal.Builder.Argument as Argument exposing (Argument) 14 | import Graphql.Internal.Builder.Object as Object 15 | import Graphql.Internal.Encode as Encode exposing (Value) 16 | import Graphql.Operation exposing (RootMutation, RootQuery, RootSubscription) 17 | import Graphql.OptionalArgument exposing (OptionalArgument(..)) 18 | import Graphql.SelectionSet exposing (SelectionSet) 19 | import Json.Decode as Decode 20 | 21 | 22 | {-| A unique identifier for the client performing the mutation. 23 | -} 24 | clientMutationId : SelectionSet (Maybe String) Github.Object.UpdateProjectCardPayload 25 | clientMutationId = 26 | Object.selectionForField "(Maybe String)" "clientMutationId" [] (Decode.string |> Decode.nullable) 27 | 28 | 29 | {-| The updated ProjectCard. 30 | -} 31 | projectCard : 32 | SelectionSet decodesTo Github.Object.ProjectCard 33 | -> SelectionSet decodesTo Github.Object.UpdateProjectCardPayload 34 | projectCard object____ = 35 | Object.selectionForCompositeField "projectCard" [] object____ Basics.identity 36 | -------------------------------------------------------------------------------- /examples/src/Github/Object/UpdateProjectColumnPayload.elm: -------------------------------------------------------------------------------- 1 | -- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql 2 | -- https://github.com/dillonkearns/elm-graphql 3 | 4 | 5 | module Github.Object.UpdateProjectColumnPayload exposing (..) 6 | 7 | import Github.InputObject 8 | import Github.Interface 9 | import Github.Object 10 | import Github.Scalar 11 | import Github.ScalarCodecs 12 | import Github.Union 13 | import Graphql.Internal.Builder.Argument as Argument exposing (Argument) 14 | import Graphql.Internal.Builder.Object as Object 15 | import Graphql.Internal.Encode as Encode exposing (Value) 16 | import Graphql.Operation exposing (RootMutation, RootQuery, RootSubscription) 17 | import Graphql.OptionalArgument exposing (OptionalArgument(..)) 18 | import Graphql.SelectionSet exposing (SelectionSet) 19 | import Json.Decode as Decode 20 | 21 | 22 | {-| A unique identifier for the client performing the mutation. 23 | -} 24 | clientMutationId : SelectionSet (Maybe String) Github.Object.UpdateProjectColumnPayload 25 | clientMutationId = 26 | Object.selectionForField "(Maybe String)" "clientMutationId" [] (Decode.string |> Decode.nullable) 27 | 28 | 29 | {-| The updated project column. 30 | -} 31 | projectColumn : 32 | SelectionSet decodesTo Github.Object.ProjectColumn 33 | -> SelectionSet decodesTo Github.Object.UpdateProjectColumnPayload 34 | projectColumn object____ = 35 | Object.selectionForCompositeField "projectColumn" [] object____ Basics.identity 36 | -------------------------------------------------------------------------------- /examples/src/Github/Object/UpdateProjectPayload.elm: -------------------------------------------------------------------------------- 1 | -- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql 2 | -- https://github.com/dillonkearns/elm-graphql 3 | 4 | 5 | module Github.Object.UpdateProjectPayload exposing (..) 6 | 7 | import Github.InputObject 8 | import Github.Interface 9 | import Github.Object 10 | import Github.Scalar 11 | import Github.ScalarCodecs 12 | import Github.Union 13 | import Graphql.Internal.Builder.Argument as Argument exposing (Argument) 14 | import Graphql.Internal.Builder.Object as Object 15 | import Graphql.Internal.Encode as Encode exposing (Value) 16 | import Graphql.Operation exposing (RootMutation, RootQuery, RootSubscription) 17 | import Graphql.OptionalArgument exposing (OptionalArgument(..)) 18 | import Graphql.SelectionSet exposing (SelectionSet) 19 | import Json.Decode as Decode 20 | 21 | 22 | {-| A unique identifier for the client performing the mutation. 23 | -} 24 | clientMutationId : SelectionSet (Maybe String) Github.Object.UpdateProjectPayload 25 | clientMutationId = 26 | Object.selectionForField "(Maybe String)" "clientMutationId" [] (Decode.string |> Decode.nullable) 27 | 28 | 29 | {-| The updated project. 30 | -} 31 | project : 32 | SelectionSet decodesTo Github.Object.Project 33 | -> SelectionSet decodesTo Github.Object.UpdateProjectPayload 34 | project object____ = 35 | Object.selectionForCompositeField "project" [] object____ Basics.identity 36 | -------------------------------------------------------------------------------- /examples/src/Github/Object/UpdateSubscriptionPayload.elm: -------------------------------------------------------------------------------- 1 | -- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql 2 | -- https://github.com/dillonkearns/elm-graphql 3 | 4 | 5 | module Github.Object.UpdateSubscriptionPayload exposing (..) 6 | 7 | import Github.InputObject 8 | import Github.Interface 9 | import Github.Object 10 | import Github.Scalar 11 | import Github.ScalarCodecs 12 | import Github.Union 13 | import Graphql.Internal.Builder.Argument as Argument exposing (Argument) 14 | import Graphql.Internal.Builder.Object as Object 15 | import Graphql.Internal.Encode as Encode exposing (Value) 16 | import Graphql.Operation exposing (RootMutation, RootQuery, RootSubscription) 17 | import Graphql.OptionalArgument exposing (OptionalArgument(..)) 18 | import Graphql.SelectionSet exposing (SelectionSet) 19 | import Json.Decode as Decode 20 | 21 | 22 | {-| A unique identifier for the client performing the mutation. 23 | -} 24 | clientMutationId : SelectionSet (Maybe String) Github.Object.UpdateSubscriptionPayload 25 | clientMutationId = 26 | Object.selectionForField "(Maybe String)" "clientMutationId" [] (Decode.string |> Decode.nullable) 27 | 28 | 29 | {-| The input subscribable entity. 30 | -} 31 | subscribable : 32 | SelectionSet decodesTo Github.Interface.Subscribable 33 | -> SelectionSet decodesTo Github.Object.UpdateSubscriptionPayload 34 | subscribable object____ = 35 | Object.selectionForCompositeField "subscribable" [] object____ Basics.identity 36 | -------------------------------------------------------------------------------- /examples/src/Github/Object/UserContentEditEdge.elm: -------------------------------------------------------------------------------- 1 | -- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql 2 | -- https://github.com/dillonkearns/elm-graphql 3 | 4 | 5 | module Github.Object.UserContentEditEdge exposing (..) 6 | 7 | import Github.InputObject 8 | import Github.Interface 9 | import Github.Object 10 | import Github.Scalar 11 | import Github.ScalarCodecs 12 | import Github.Union 13 | import Graphql.Internal.Builder.Argument as Argument exposing (Argument) 14 | import Graphql.Internal.Builder.Object as Object 15 | import Graphql.Internal.Encode as Encode exposing (Value) 16 | import Graphql.Operation exposing (RootMutation, RootQuery, RootSubscription) 17 | import Graphql.OptionalArgument exposing (OptionalArgument(..)) 18 | import Graphql.SelectionSet exposing (SelectionSet) 19 | import Json.Decode as Decode 20 | 21 | 22 | {-| A cursor for use in pagination. 23 | -} 24 | cursor : SelectionSet String Github.Object.UserContentEditEdge 25 | cursor = 26 | Object.selectionForField "String" "cursor" [] Decode.string 27 | 28 | 29 | {-| The item at the end of the edge. 30 | -} 31 | node : 32 | SelectionSet decodesTo Github.Object.UserContentEdit 33 | -> SelectionSet (Maybe decodesTo) Github.Object.UserContentEditEdge 34 | node object____ = 35 | Object.selectionForCompositeField "node" [] object____ (Basics.identity >> Decode.nullable) 36 | -------------------------------------------------------------------------------- /examples/src/Github/Object/UserEdge.elm: -------------------------------------------------------------------------------- 1 | -- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql 2 | -- https://github.com/dillonkearns/elm-graphql 3 | 4 | 5 | module Github.Object.UserEdge exposing (..) 6 | 7 | import Github.InputObject 8 | import Github.Interface 9 | import Github.Object 10 | import Github.Scalar 11 | import Github.ScalarCodecs 12 | import Github.Union 13 | import Graphql.Internal.Builder.Argument as Argument exposing (Argument) 14 | import Graphql.Internal.Builder.Object as Object 15 | import Graphql.Internal.Encode as Encode exposing (Value) 16 | import Graphql.Operation exposing (RootMutation, RootQuery, RootSubscription) 17 | import Graphql.OptionalArgument exposing (OptionalArgument(..)) 18 | import Graphql.SelectionSet exposing (SelectionSet) 19 | import Json.Decode as Decode 20 | 21 | 22 | {-| A cursor for use in pagination. 23 | -} 24 | cursor : SelectionSet String Github.Object.UserEdge 25 | cursor = 26 | Object.selectionForField "String" "cursor" [] Decode.string 27 | 28 | 29 | {-| The item at the end of the edge. 30 | -} 31 | node : 32 | SelectionSet decodesTo Github.Object.User 33 | -> SelectionSet (Maybe decodesTo) Github.Object.UserEdge 34 | node object____ = 35 | Object.selectionForCompositeField "node" [] object____ (Basics.identity >> Decode.nullable) 36 | -------------------------------------------------------------------------------- /examples/src/Github/Union.elm: -------------------------------------------------------------------------------- 1 | -- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql 2 | -- https://github.com/dillonkearns/elm-graphql 3 | 4 | 5 | module Github.Union exposing (..) 6 | 7 | 8 | type Closer 9 | = Closer 10 | 11 | 12 | type CollectionItemContent 13 | = CollectionItemContent 14 | 15 | 16 | type IssueOrPullRequest 17 | = IssueOrPullRequest 18 | 19 | 20 | type IssueTimelineItem 21 | = IssueTimelineItem 22 | 23 | 24 | type MilestoneItem 25 | = MilestoneItem 26 | 27 | 28 | type ProjectCardItem 29 | = ProjectCardItem 30 | 31 | 32 | type PullRequestTimelineItem 33 | = PullRequestTimelineItem 34 | 35 | 36 | type PushAllowanceActor 37 | = PushAllowanceActor 38 | 39 | 40 | type ReferencedSubject 41 | = ReferencedSubject 42 | 43 | 44 | type RenamedTitleSubject 45 | = RenamedTitleSubject 46 | 47 | 48 | type RequestedReviewer 49 | = RequestedReviewer 50 | 51 | 52 | type ReviewDismissalAllowanceActor 53 | = ReviewDismissalAllowanceActor 54 | 55 | 56 | type SearchResultItem 57 | = SearchResultItem 58 | -------------------------------------------------------------------------------- /examples/src/Github/VerifyScalarCodecs.elm: -------------------------------------------------------------------------------- 1 | -- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql 2 | -- https://github.com/dillonkearns/elm-graphql 3 | 4 | 5 | module Github.VerifyScalarCodecs exposing (..) 6 | 7 | 8 | placeholder : String 9 | placeholder = 10 | "" 11 | -------------------------------------------------------------------------------- /examples/src/SimpleMutation.elm: -------------------------------------------------------------------------------- 1 | module SimpleMutation exposing (main) 2 | 3 | import Graphql.Document as Document 4 | import Graphql.Http 5 | import Graphql.Operation exposing (RootMutation) 6 | import Graphql.SelectionSet as SelectionSet exposing (SelectionSet) 7 | import Helpers.Main 8 | import RemoteData exposing (RemoteData) 9 | import Swapi.Mutation as Mutation 10 | 11 | 12 | type alias Response = 13 | Int 14 | 15 | 16 | mutation : SelectionSet Response RootMutation 17 | mutation = 18 | Mutation.increment 19 | 20 | 21 | makeRequest : Cmd Msg 22 | makeRequest = 23 | mutation 24 | |> Graphql.Http.mutationRequest "https://elm-graphql.onrender.com" 25 | |> Graphql.Http.send (RemoteData.fromResult >> GotResponse) 26 | 27 | 28 | type Msg 29 | = GotResponse Model 30 | 31 | 32 | type alias Model = 33 | RemoteData (Graphql.Http.Error Response) Response 34 | 35 | 36 | init : () -> ( Model, Cmd Msg ) 37 | init _ = 38 | ( RemoteData.Loading 39 | , makeRequest 40 | ) 41 | 42 | 43 | update : Msg -> Model -> ( Model, Cmd Msg ) 44 | update msg model = 45 | case msg of 46 | GotResponse response -> 47 | ( response, Cmd.none ) 48 | 49 | 50 | type alias Flags = 51 | () 52 | 53 | 54 | main : Helpers.Main.Program Flags Model Msg 55 | main = 56 | Helpers.Main.document 57 | { init = init 58 | , update = update 59 | , queryString = Document.serializeMutation mutation 60 | } 61 | -------------------------------------------------------------------------------- /examples/src/Swapi/Interface.elm: -------------------------------------------------------------------------------- 1 | -- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql 2 | -- https://github.com/dillonkearns/elm-graphql 3 | 4 | 5 | module Swapi.Interface exposing (..) 6 | 7 | 8 | type Character 9 | = Character 10 | -------------------------------------------------------------------------------- /examples/src/Swapi/Object.elm: -------------------------------------------------------------------------------- 1 | -- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql 2 | -- https://github.com/dillonkearns/elm-graphql 3 | 4 | 5 | module Swapi.Object exposing (..) 6 | 7 | 8 | type ChatMessage 9 | = ChatMessage 10 | 11 | 12 | type Droid 13 | = Droid 14 | 15 | 16 | type Human 17 | = Human 18 | -------------------------------------------------------------------------------- /examples/src/Swapi/Object/ChatMessage.elm: -------------------------------------------------------------------------------- 1 | -- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql 2 | -- https://github.com/dillonkearns/elm-graphql 3 | 4 | 5 | module Swapi.Object.ChatMessage exposing (..) 6 | 7 | import CustomScalarCodecs 8 | import Graphql.Internal.Builder.Argument as Argument exposing (Argument) 9 | import Graphql.Internal.Builder.Object as Object 10 | import Graphql.Internal.Encode as Encode exposing (Value) 11 | import Graphql.Operation exposing (RootMutation, RootQuery, RootSubscription) 12 | import Graphql.OptionalArgument exposing (OptionalArgument(..)) 13 | import Graphql.SelectionSet exposing (SelectionSet) 14 | import Json.Decode as Decode 15 | import Swapi.Enum.Phrase 16 | import Swapi.InputObject 17 | import Swapi.Interface 18 | import Swapi.Object 19 | import Swapi.Scalar 20 | import Swapi.Union 21 | 22 | 23 | character : 24 | SelectionSet decodesTo Swapi.Interface.Character 25 | -> SelectionSet (Maybe decodesTo) Swapi.Object.ChatMessage 26 | character object____ = 27 | Object.selectionForCompositeField "character" [] object____ (Basics.identity >> Decode.nullable) 28 | 29 | 30 | phrase : SelectionSet Swapi.Enum.Phrase.Phrase Swapi.Object.ChatMessage 31 | phrase = 32 | Object.selectionForField "Enum.Phrase.Phrase" "phrase" [] Swapi.Enum.Phrase.decoder 33 | -------------------------------------------------------------------------------- /examples/src/Swapi/ScalarCodecs.elm: -------------------------------------------------------------------------------- 1 | -- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql 2 | -- https://github.com/dillonkearns/elm-graphql 3 | 4 | 5 | module Swapi.ScalarCodecs exposing (..) 6 | 7 | import Json.Decode as Decode exposing (Decoder) 8 | import Swapi.Scalar exposing (defaultCodecs) 9 | 10 | 11 | type alias Id = 12 | Swapi.Scalar.Id 13 | 14 | 15 | type alias PosixTime = 16 | Swapi.Scalar.PosixTime 17 | 18 | 19 | codecs : Swapi.Scalar.Codecs Id PosixTime 20 | codecs = 21 | Swapi.Scalar.defineCodecs 22 | { codecId = defaultCodecs.codecId 23 | , codecPosixTime = defaultCodecs.codecPosixTime 24 | } 25 | -------------------------------------------------------------------------------- /examples/src/Swapi/Subscription.elm: -------------------------------------------------------------------------------- 1 | -- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql 2 | -- https://github.com/dillonkearns/elm-graphql 3 | 4 | 5 | module Swapi.Subscription exposing (..) 6 | 7 | import CustomScalarCodecs 8 | import Graphql.Internal.Builder.Argument as Argument exposing (Argument) 9 | import Graphql.Internal.Builder.Object as Object 10 | import Graphql.Internal.Encode as Encode exposing (Value) 11 | import Graphql.Operation exposing (RootMutation, RootQuery, RootSubscription) 12 | import Graphql.OptionalArgument exposing (OptionalArgument(..)) 13 | import Graphql.SelectionSet exposing (SelectionSet) 14 | import Json.Decode as Decode exposing (Decoder) 15 | import Swapi.InputObject 16 | import Swapi.Interface 17 | import Swapi.Object 18 | import Swapi.Scalar 19 | import Swapi.Union 20 | 21 | 22 | newMessage : 23 | SelectionSet decodesTo Swapi.Object.ChatMessage 24 | -> SelectionSet decodesTo RootSubscription 25 | newMessage object____ = 26 | Object.selectionForCompositeField "newMessage" [] object____ Basics.identity 27 | -------------------------------------------------------------------------------- /examples/src/Swapi/Union.elm: -------------------------------------------------------------------------------- 1 | -- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql 2 | -- https://github.com/dillonkearns/elm-graphql 3 | 4 | 5 | module Swapi.Union exposing (..) 6 | 7 | 8 | type CharacterUnion 9 | = CharacterUnion 10 | -------------------------------------------------------------------------------- /examples/src/Swapi/VerifyScalarCodecs.elm: -------------------------------------------------------------------------------- 1 | -- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql 2 | -- https://github.com/dillonkearns/elm-graphql 3 | 4 | 5 | module Swapi.VerifyScalarCodecs exposing (..) 6 | 7 | {- 8 | This file is intended to be used to ensure that custom scalar decoder 9 | files are valid. It is compiled using `elm make` by the CLI. 10 | -} 11 | 12 | import CustomScalarCodecs 13 | import Swapi.Scalar 14 | 15 | 16 | verify : Swapi.Scalar.Codecs CustomScalarCodecs.Id CustomScalarCodecs.PosixTime 17 | verify = 18 | CustomScalarCodecs.codecs 19 | -------------------------------------------------------------------------------- /examples/subscription/.gitignore: -------------------------------------------------------------------------------- 1 | dist/ 2 | -------------------------------------------------------------------------------- /examples/subscription/elm.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "application", 3 | "source-directories": [ 4 | "../../src", 5 | "../src", 6 | "." 7 | ], 8 | "elm-version": "0.19.1", 9 | "dependencies": { 10 | "direct": { 11 | "elm/browser": "1.0.1", 12 | "elm/core": "1.0.2", 13 | "elm/html": "1.0.0", 14 | "elm/http": "2.0.0", 15 | "elm/json": "1.1.2", 16 | "elm/regex": "1.0.0", 17 | "elm/time": "1.0.0", 18 | "elm/url": "1.0.0", 19 | "elm-community/list-extra": "8.0.0", 20 | "j-maas/elm-ordered-containers": "1.0.0", 21 | "krisajenkins/remotedata": "6.0.1", 22 | "lukewestby/elm-string-interpolate": "1.0.4", 23 | "mdgriffith/elm-ui": "1.1.0", 24 | "rtfeldman/elm-iso8601-date-strings": "1.1.2", 25 | "ryan-haskell/date-format": "1.0.0" 26 | }, 27 | "indirect": { 28 | "elm/bytes": "1.0.7", 29 | "elm/file": "1.0.1", 30 | "elm/parser": "1.1.0", 31 | "elm/virtual-dom": "1.0.2" 32 | } 33 | }, 34 | "test-dependencies": { 35 | "direct": {}, 36 | "indirect": {} 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /examples/subscription/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 28 | 29 | 30 |
31 | 32 | 33 | -------------------------------------------------------------------------------- /examples/subscription/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "subscription", 3 | "version": "1.0.0", 4 | "description": "", 5 | "main": "index.js", 6 | "scripts": { 7 | "start": "webpack serve --open", 8 | "build": "webpack --mode production && cp index.html dist" 9 | }, 10 | "keywords": [], 11 | "author": "", 12 | "license": "ISC", 13 | "dependencies": { 14 | "@absinthe/socket": "^0.2.1", 15 | "elm-hot-webpack-loader": "^1.1.8", 16 | "elm-webpack-loader": "^7.0.1", 17 | "phoenix": "^1.5.7" 18 | }, 19 | "devDependencies": { 20 | "webpack": "^5.88.2", 21 | "webpack-cli": "^5.1.4", 22 | "webpack-dev-server": "^4.15.1" 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /generator/review/elm.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "application", 3 | "source-directories": [ 4 | "src" 5 | ], 6 | "elm-version": "0.19.1", 7 | "dependencies": { 8 | "direct": { 9 | "elm/core": "1.0.5", 10 | "elm/json": "1.1.3", 11 | "elm/project-metadata-utils": "1.0.2", 12 | "jfmengels/elm-review": "2.15.1", 13 | "jfmengels/elm-review-common": "1.3.3", 14 | "jfmengels/elm-review-debug": "1.0.8", 15 | "jfmengels/elm-review-unused": "1.2.4", 16 | "sparksp/elm-review-imports": "1.0.2", 17 | "stil4m/elm-syntax": "7.3.8" 18 | }, 19 | "indirect": { 20 | "elm/bytes": "1.0.8", 21 | "elm/html": "1.0.0", 22 | "elm/parser": "1.1.0", 23 | "elm/random": "1.0.0", 24 | "elm/regex": "1.0.0", 25 | "elm/time": "1.0.0", 26 | "elm/virtual-dom": "1.0.3", 27 | "elm-explorations/test": "2.2.0", 28 | "rtfeldman/elm-hex": "1.0.0", 29 | "stil4m/structured-writer": "1.0.3" 30 | } 31 | }, 32 | "test-dependencies": { 33 | "direct": { 34 | "elm-explorations/test": "2.2.0" 35 | }, 36 | "indirect": {} 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /generator/src/GenerateSyntax.elm: -------------------------------------------------------------------------------- 1 | module GenerateSyntax exposing (typeAlias) 2 | 3 | import String.Interpolate exposing (interpolate) 4 | 5 | 6 | typeAlias : List ( String, String ) -> String 7 | typeAlias entries = 8 | entries 9 | |> List.map (\( key, value ) -> key ++ " : " ++ value) 10 | |> String.join "\n , " 11 | |> List.singleton 12 | |> interpolate "{ {0} }" 13 | -------------------------------------------------------------------------------- /generator/src/Graphql/Generator/InputObjectFile/Details.elm: -------------------------------------------------------------------------------- 1 | module Graphql.Generator.InputObjectFile.Details exposing (InputObjectDetails) 2 | 3 | import Graphql.Parser.ClassCaseName as ClassCaseName exposing (ClassCaseName) 4 | import Graphql.Parser.Type as Type exposing (TypeDefinition(..)) 5 | 6 | 7 | type alias InputObjectDetails = 8 | { definableType : Type.DefinableType 9 | , fields : List Type.Field 10 | , name : ClassCaseName 11 | , hasLoop : Bool 12 | } 13 | -------------------------------------------------------------------------------- /generator/src/Graphql/Generator/Let.elm: -------------------------------------------------------------------------------- 1 | module Graphql.Generator.Let exposing (LetBinding, generate) 2 | 3 | import String.Interpolate exposing (interpolate) 4 | 5 | 6 | type alias LetBinding = 7 | ( String, String ) 8 | 9 | 10 | generate : List LetBinding -> String 11 | generate letBindings = 12 | let 13 | toLetString ( name, value ) = 14 | interpolate 15 | """ {0} = 16 | {1}""" 17 | [ name, value ] 18 | 19 | letString = 20 | letBindings 21 | |> List.map toLetString 22 | |> String.join "\n\n" 23 | in 24 | if letBindings == [] then 25 | "" 26 | 27 | else 28 | interpolate 29 | """ 30 | let 31 | {0} 32 | in""" 33 | [ letString ] 34 | -------------------------------------------------------------------------------- /generator/src/Graphql/Generator/Mutation.elm: -------------------------------------------------------------------------------- 1 | module Graphql.Generator.Mutation exposing (generate) 2 | 3 | import Graphql.Generator.Context exposing (Context) 4 | import Graphql.Generator.Field as FieldGenerator 5 | import Graphql.Generator.Imports as Imports 6 | import Graphql.Generator.StaticImports as StaticImports 7 | import Graphql.Parser.ClassCaseName as ClassCaseName 8 | import Graphql.Parser.Type as Type exposing (Field) 9 | import String.Interpolate exposing (interpolate) 10 | 11 | 12 | generate : Context -> List String -> List Field -> String 13 | generate context moduleName fields = 14 | prepend context moduleName fields 15 | ++ (List.map (FieldGenerator.generateForObject context (context.mutation |> Maybe.withDefault (ClassCaseName.build ""))) fields |> String.join "\n\n") 16 | 17 | 18 | prepend : Context -> List String -> List Field -> String 19 | prepend ({ apiSubmodule } as context) moduleName fields = 20 | interpolate 21 | """module {0} exposing (..) 22 | 23 | {2} 24 | {1} 25 | """ 26 | [ moduleName |> String.join "." 27 | , Imports.importsString apiSubmodule moduleName fields 28 | , StaticImports.all context 29 | ] 30 | -------------------------------------------------------------------------------- /generator/src/Graphql/Generator/Query.elm: -------------------------------------------------------------------------------- 1 | module Graphql.Generator.Query exposing (generate) 2 | 3 | import Graphql.Generator.Context exposing (Context) 4 | import Graphql.Generator.Field as FieldGenerator 5 | import Graphql.Generator.Imports as Imports 6 | import Graphql.Generator.StaticImports as StaticImports 7 | import Graphql.Parser.Type as Type exposing (Field) 8 | import String.Interpolate exposing (interpolate) 9 | 10 | 11 | generate : Context -> List String -> List Field -> String 12 | generate context moduleName fields = 13 | prepend context moduleName fields 14 | ++ (List.map (FieldGenerator.generateForObject context context.query) fields |> String.join "\n\n") 15 | 16 | 17 | prepend : Context -> List String -> List Field -> String 18 | prepend ({ apiSubmodule } as context) moduleName fields = 19 | interpolate 20 | """module {0} exposing (..) 21 | 22 | {2} 23 | {1} 24 | """ 25 | [ moduleName |> String.join "." 26 | , Imports.importsString apiSubmodule moduleName fields 27 | , StaticImports.all context 28 | ] 29 | -------------------------------------------------------------------------------- /generator/src/Graphql/Generator/ReferenceLeaf.elm: -------------------------------------------------------------------------------- 1 | module Graphql.Generator.ReferenceLeaf exposing (ReferenceLeaf(..), get) 2 | 3 | import Graphql.Parser.Type as Type exposing (TypeReference(..)) 4 | import MyDebug 5 | 6 | 7 | type ReferenceLeaf 8 | = Object 9 | | Enum 10 | | Union 11 | | Interface 12 | | Scalar 13 | 14 | 15 | get : TypeReference -> ReferenceLeaf 16 | get (TypeReference referrableType isNullable) = 17 | case referrableType of 18 | Type.ObjectRef _ -> 19 | Object 20 | 21 | Type.Scalar _ -> 22 | Scalar 23 | 24 | Type.List nestedType -> 25 | get nestedType 26 | 27 | Type.EnumRef _ -> 28 | Enum 29 | 30 | Type.InputObjectRef _ -> 31 | MyDebug.crash "TODO" 32 | 33 | Type.UnionRef _ -> 34 | Union 35 | 36 | Type.InterfaceRef _ -> 37 | Interface 38 | -------------------------------------------------------------------------------- /generator/src/Graphql/Generator/Subscription.elm: -------------------------------------------------------------------------------- 1 | module Graphql.Generator.Subscription exposing (generate) 2 | 3 | import Graphql.Generator.Context exposing (Context) 4 | import Graphql.Generator.Field as FieldGenerator 5 | import Graphql.Generator.Imports as Imports 6 | import Graphql.Generator.StaticImports as StaticImports 7 | import Graphql.Parser.ClassCaseName as ClassCaseName 8 | import Graphql.Parser.Type as Type exposing (Field) 9 | import String.Interpolate exposing (interpolate) 10 | 11 | 12 | generate : Context -> List String -> List Field -> String 13 | generate context moduleName fields = 14 | prepend context moduleName fields 15 | ++ (List.map (FieldGenerator.generateForObject context (context.subscription |> Maybe.withDefault (ClassCaseName.build ""))) fields |> String.join "\n\n") 16 | 17 | 18 | prepend : Context -> List String -> List Field -> String 19 | prepend ({ apiSubmodule } as context) moduleName fields = 20 | interpolate 21 | """module {0} exposing (..) 22 | 23 | {2} 24 | {1} 25 | """ 26 | [ moduleName |> String.join "." 27 | , Imports.importsString apiSubmodule moduleName fields 28 | , StaticImports.all context 29 | ] 30 | -------------------------------------------------------------------------------- /generator/src/Graphql/Parser.elm: -------------------------------------------------------------------------------- 1 | module Graphql.Parser exposing (decoder) 2 | 3 | import Dict exposing (Dict) 4 | import Graphql.Generator.Group exposing (IntrospectionData, sortedIntrospectionData) 5 | import Graphql.Parser.Type as Type 6 | import Json.Decode as Decode exposing (Decoder) 7 | import ModuleName exposing (ModuleName) 8 | 9 | 10 | decoder : { apiSubmodule : List String, scalarCodecsModule : Maybe ModuleName } -> Decoder (Dict String String) 11 | decoder options = 12 | Decode.map4 sortedIntrospectionData 13 | (Type.decoder 14 | |> Decode.list 15 | |> Decode.at [ "__schema", "types" ] 16 | ) 17 | (Decode.at [ "__schema", "queryType", "name" ] Decode.string) 18 | (Decode.maybe (Decode.at [ "__schema", "mutationType", "name" ] Decode.string)) 19 | (Decode.maybe (Decode.at [ "__schema", "subscriptionType", "name" ] Decode.string)) 20 | |> Decode.map (Graphql.Generator.Group.generateFiles options) 21 | -------------------------------------------------------------------------------- /generator/src/Graphql/Parser/CamelCaseName.elm: -------------------------------------------------------------------------------- 1 | module Graphql.Parser.CamelCaseName exposing (CamelCaseName, build, normalized, raw) 2 | 3 | import Graphql.Generator.Normalize as Normalize 4 | 5 | 6 | type CamelCaseName 7 | = CamelCaseName String 8 | 9 | 10 | build : String -> CamelCaseName 11 | build = 12 | CamelCaseName 13 | 14 | 15 | raw : CamelCaseName -> String 16 | raw (CamelCaseName name) = 17 | name 18 | 19 | 20 | normalized : CamelCaseName -> String 21 | normalized (CamelCaseName name) = 22 | name |> Normalize.decapitalized 23 | -------------------------------------------------------------------------------- /generator/src/Graphql/Parser/ClassCaseName.elm: -------------------------------------------------------------------------------- 1 | module Graphql.Parser.ClassCaseName exposing (ClassCaseName, build, isBuiltIn, normalized, raw) 2 | 3 | import Graphql.Generator.Normalize as Normalize 4 | 5 | 6 | build : String -> ClassCaseName 7 | build = 8 | ClassCaseName 9 | 10 | 11 | type ClassCaseName 12 | = ClassCaseName String 13 | 14 | 15 | raw : ClassCaseName -> String 16 | raw (ClassCaseName rawName) = 17 | rawName 18 | 19 | 20 | normalized : ClassCaseName -> String 21 | normalized (ClassCaseName rawName) = 22 | rawName |> Normalize.capitalized 23 | 24 | 25 | isBuiltIn : ClassCaseName -> Bool 26 | isBuiltIn (ClassCaseName rawName) = 27 | if String.startsWith "__" rawName then 28 | True 29 | 30 | else 31 | False 32 | -------------------------------------------------------------------------------- /generator/src/Graphql/Parser/Scalar.elm: -------------------------------------------------------------------------------- 1 | module Graphql.Parser.Scalar exposing (Scalar(..), parse) 2 | 3 | import Graphql.Parser.ClassCaseName as ClassCaseName exposing (ClassCaseName) 4 | 5 | 6 | type Scalar 7 | = Boolean 8 | | String 9 | | Int 10 | | Float 11 | | Custom ClassCaseName 12 | 13 | 14 | parse : String -> Scalar 15 | parse scalarName = 16 | case scalarName of 17 | "String" -> 18 | String 19 | 20 | "Boolean" -> 21 | Boolean 22 | 23 | "Int" -> 24 | Int 25 | 26 | "Float" -> 27 | Float 28 | 29 | _ -> 30 | Custom (ClassCaseName.build scalarName) 31 | 32 | 33 | toString : Scalar -> String 34 | toString scalar = 35 | case scalar of 36 | String -> 37 | "String" 38 | 39 | Boolean -> 40 | "Boolean" 41 | 42 | Int -> 43 | "Int" 44 | 45 | Float -> 46 | "Float" 47 | 48 | Custom customScalarName -> 49 | customScalarName 50 | |> ClassCaseName.raw 51 | -------------------------------------------------------------------------------- /generator/src/Graphql/Parser/TypeKind.elm: -------------------------------------------------------------------------------- 1 | module Graphql.Parser.TypeKind exposing (TypeKind(..), decoder) 2 | 3 | import Json.Decode as Decode exposing (Decoder) 4 | 5 | 6 | type TypeKind 7 | = Scalar 8 | | Object 9 | | List 10 | | NonNull 11 | | Ignore 12 | | Enum 13 | | Interface 14 | | InputObject 15 | | Union 16 | 17 | 18 | decoder : Decoder TypeKind 19 | decoder = 20 | Decode.string 21 | |> Decode.andThen 22 | (\string -> 23 | case string of 24 | "SCALAR" -> 25 | Decode.succeed Scalar 26 | 27 | "OBJECT" -> 28 | Decode.succeed Object 29 | 30 | "LIST" -> 31 | Decode.succeed List 32 | 33 | "NON_NULL" -> 34 | Decode.succeed NonNull 35 | 36 | "ENUM" -> 37 | Decode.succeed Enum 38 | 39 | "INTERFACE" -> 40 | Decode.succeed Interface 41 | 42 | "INPUT_OBJECT" -> 43 | Decode.succeed InputObject 44 | 45 | "UNION" -> 46 | Decode.succeed Union 47 | 48 | _ -> 49 | Decode.fail ("Invalid TypeKind" ++ string) 50 | ) 51 | -------------------------------------------------------------------------------- /generator/src/ModuleName.elm: -------------------------------------------------------------------------------- 1 | module ModuleName exposing (ModuleName, append, fromList, toString) 2 | 3 | 4 | type ModuleName 5 | = ModuleName (List String) 6 | 7 | 8 | fromList : List String -> ModuleName 9 | fromList = 10 | ModuleName 11 | 12 | 13 | toString : ModuleName -> String 14 | toString (ModuleName moduleNameParts) = 15 | moduleNameParts 16 | |> String.join "." 17 | 18 | 19 | append : String -> ModuleName -> String 20 | append string (ModuleName moduleNameParts) = 21 | moduleNameParts 22 | ++ [ string ] 23 | |> String.join "." 24 | -------------------------------------------------------------------------------- /generator/src/MyDebug.elm: -------------------------------------------------------------------------------- 1 | module MyDebug exposing (crash) 2 | 3 | 4 | crash : a -> b 5 | crash value = 6 | crash value 7 | -------------------------------------------------------------------------------- /generator/src/cli/path-helpers.ts: -------------------------------------------------------------------------------- 1 | import * as path from "path"; 2 | 3 | export function prependBasePath( 4 | suffixPath: string, 5 | baseModule: string[], 6 | outputPath: string 7 | ): string { 8 | return path.join(outputPath, baseModule.join("/"), suffixPath); 9 | } 10 | -------------------------------------------------------------------------------- /generator/src/formatted-write.ts: -------------------------------------------------------------------------------- 1 | import * as spawn from "cross-spawn"; 2 | 3 | export const applyElmFormat = (fileOrFolderToFormat: string): void => { 4 | try { 5 | const result = spawn.sync(`elm-format`, ['--elm-version', '0.19', '--yes', fileOrFolderToFormat]); 6 | if (result.status !== 0) { 7 | if (result?.error?.code === "ENOENT") { 8 | console.error("Unable to run elm-format. Please ensure that elm-format is available on your PATH and try again. Or re-run using --skip-elm-format."); 9 | process.exit(1); 10 | } else { 11 | console.error("Unable to run elm-format. Please ensure that elm-format is available on your PATH and try again. Or re-run using --skip-elm-format.\n\n", result.error); 12 | process.exit(1); 13 | } 14 | } 15 | } catch (error) { 16 | console.error("Unable to run elm-format. Please ensure that elm-format is available on your PATH and try again. Or re-run using --skip-elm-format.\n\n", error); 17 | process.exit(1); 18 | } 19 | }; 20 | -------------------------------------------------------------------------------- /generator/src/versions.js: -------------------------------------------------------------------------------- 1 | // This file is auto-generated during build 2 | // Do not modify manually 3 | export const npmPackageVersion = "4.3.2-beta.0"; 4 | export const elmPackageVersion = "5.0.12"; -------------------------------------------------------------------------------- /generator/src/versions.ts.template: -------------------------------------------------------------------------------- 1 | // This file is auto-generated during build 2 | // Do not modify manually 3 | export const npmPackageVersion = "%%NPM_VERSION%%"; 4 | export const elmPackageVersion = "%%ELM_VERSION%%"; -------------------------------------------------------------------------------- /generator/tests/Generator/EnumTests.elm: -------------------------------------------------------------------------------- 1 | module Generator.EnumTests exposing (all) 2 | 3 | import Expect 4 | import Graphql.Generator.Enum as Enum 5 | import Graphql.Parser.ClassCaseName as ClassCaseName 6 | import Test exposing (Test, describe, test) 7 | 8 | 9 | all : Test 10 | all = 11 | describe "enum" 12 | [ test "generate enum" <| 13 | \() -> 14 | Enum.enumType (ClassCaseName.build "Beverage") 15 | [ { name = ClassCaseName.build "Tea", description = Nothing } 16 | , { name = ClassCaseName.build "Coffee", description = Nothing } 17 | ] 18 | |> Expect.equal """type Beverage 19 | = Tea 20 | | Coffee 21 | """ 22 | ] 23 | -------------------------------------------------------------------------------- /generator/tests/Generator/ModuleNameTests.elm: -------------------------------------------------------------------------------- 1 | module Generator.ModuleNameTests exposing (all) 2 | 3 | import Dict 4 | import Expect 5 | import Graphql.Generator.Context as Context exposing (stub) 6 | import Graphql.Generator.ModuleName as ModuleName 7 | import Graphql.Parser.ClassCaseName as ClassCaseName exposing (ClassCaseName) 8 | import Test exposing (..) 9 | 10 | 11 | all : Test 12 | all = 13 | describe "module name" 14 | [ test "use RootQuery module name" <| 15 | \() -> 16 | ModuleName.object 17 | { stub 18 | | query = "RootQueryType" |> ClassCaseName.build 19 | } 20 | (ClassCaseName.build "RootQueryType") 21 | |> Expect.equal [ "RootQuery" ] 22 | ] 23 | -------------------------------------------------------------------------------- /generator/tests/TypeKindTests.elm: -------------------------------------------------------------------------------- 1 | module TypeKindTests exposing (all) 2 | 3 | import Expect 4 | import Graphql.Parser.TypeKind as TypeKind exposing (TypeKind(..)) 5 | import Json.Decode as Decode exposing (Decoder) 6 | import Test exposing (..) 7 | 8 | 9 | all : Test 10 | all = 11 | describe "typekind decoder" 12 | [ test "decodes scalar" <| 13 | \_ -> 14 | "\"SCALAR\"" 15 | |> Decode.decodeString TypeKind.decoder 16 | |> Expect.equal (Ok Scalar) 17 | , test "decodes TypeKind" <| 18 | \_ -> 19 | "\"NON_NULL\"" 20 | |> Decode.decodeString TypeKind.decoder 21 | |> Expect.equal (Ok NonNull) 22 | ] 23 | -------------------------------------------------------------------------------- /reproducing-issues/README.md: -------------------------------------------------------------------------------- 1 | # Reproducing Issues 2 | 3 | ## Background 4 | 5 | I get a lot of issues, which are all appreciated. However, it's not viable for me as a maintainer to reproduce each of them (multiply the number of users by the amount of time to get context on the problem, ask questions to get context, try to reproduce the issue, and then get context on whatever I was working on that day!). So please do the following steps before getting help for a fix. This makes development on this project a lot more sustainable. Thank you! 6 | 7 | ## Creating a minimal reproduction of possible or known issues 8 | 9 | This folder contains some tools to help reproduce minimal examples. 10 | 11 | After cloning this project, run this from the top-level directory of the `elm-graphql` repo: 12 | 13 | ```bash 14 | npm run reproduce-error 15 | ``` 16 | 17 | This will take the GraphQL schema from the file `reproducing-issues/sdl.js` and generate code based on that. From there you can check if you've reproduced the issue. This helps you iterate quickly to create a minimal schema that reproduces the fix. 18 | 19 | Then you can share the SDL snippet that created the problem. 20 | -------------------------------------------------------------------------------- /reproducing-issues/sdl-to-json.js: -------------------------------------------------------------------------------- 1 | const graphql = require("graphql"); 2 | const sdlSchema = require("./sdl.js"); 3 | 4 | console.log( 5 | JSON.stringify( 6 | graphql.introspectionFromSchema(graphql.buildSchema(sdlSchema)), 7 | null, 8 | 2 9 | ) 10 | ); 11 | -------------------------------------------------------------------------------- /reproducing-issues/sdl.js: -------------------------------------------------------------------------------- 1 | module.exports = ` 2 | type Query { 3 | hello: String 4 | } 5 | `; 6 | -------------------------------------------------------------------------------- /review/elm.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "application", 3 | "source-directories": [ 4 | "src" 5 | ], 6 | "elm-version": "0.19.1", 7 | "dependencies": { 8 | "direct": { 9 | "elm/core": "1.0.5", 10 | "elm/json": "1.1.3", 11 | "elm/project-metadata-utils": "1.0.2", 12 | "jfmengels/elm-review": "2.15.1", 13 | "jfmengels/elm-review-common": "1.3.3", 14 | "jfmengels/elm-review-debug": "1.0.8", 15 | "jfmengels/elm-review-unused": "1.2.4", 16 | "sparksp/elm-review-imports": "1.0.2", 17 | "stil4m/elm-syntax": "7.3.8" 18 | }, 19 | "indirect": { 20 | "elm/bytes": "1.0.8", 21 | "elm/html": "1.0.0", 22 | "elm/parser": "1.1.0", 23 | "elm/random": "1.0.0", 24 | "elm/regex": "1.0.0", 25 | "elm/time": "1.0.0", 26 | "elm/virtual-dom": "1.0.3", 27 | "elm-explorations/test": "2.2.0", 28 | "rtfeldman/elm-hex": "1.0.0", 29 | "stil4m/structured-writer": "1.0.3" 30 | } 31 | }, 32 | "test-dependencies": { 33 | "direct": { 34 | "elm-explorations/test": "2.2.0" 35 | }, 36 | "indirect": {} 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /src/Graphql/Codec.elm: -------------------------------------------------------------------------------- 1 | module Graphql.Codec exposing (Codec) 2 | 3 | {-| This module is used when you define custom scalars codecs for your schema. 4 | See an example and steps for how to set this up in your codebase here: 5 | 6 | 7 | @docs Codec 8 | 9 | -} 10 | 11 | import Json.Decode 12 | import Json.Encode 13 | 14 | 15 | {-| A simple definition of a decoder/encoder pair. 16 | -} 17 | type alias Codec elmValue = 18 | { encoder : elmValue -> Json.Encode.Value 19 | , decoder : Json.Decode.Decoder elmValue 20 | } 21 | -------------------------------------------------------------------------------- /src/Graphql/Document/Argument.elm: -------------------------------------------------------------------------------- 1 | module Graphql.Document.Argument exposing (serialize) 2 | 3 | import Graphql.Internal.Builder.Argument as Argument exposing (Argument(..)) 4 | import Graphql.Internal.Encode as Encode 5 | 6 | 7 | serialize : List Argument -> String 8 | serialize args = 9 | case args of 10 | [] -> 11 | "" 12 | 13 | nonemptyArgs -> 14 | "(" 15 | ++ (nonemptyArgs 16 | |> List.map argToString 17 | |> String.join ", " 18 | ) 19 | ++ ")" 20 | 21 | 22 | argToString : Argument -> String 23 | argToString (Argument name value) = 24 | name ++ ": " ++ Encode.serialize value 25 | -------------------------------------------------------------------------------- /src/Graphql/Document/Indent.elm: -------------------------------------------------------------------------------- 1 | module Graphql.Document.Indent exposing (generate) 2 | 3 | 4 | generate : Int -> String 5 | generate indentationLevel = 6 | String.repeat indentationLevel " " 7 | -------------------------------------------------------------------------------- /src/Graphql/Http/QueryParams.elm: -------------------------------------------------------------------------------- 1 | module Graphql.Http.QueryParams exposing (urlWithQueryParams) 2 | 3 | import Url 4 | 5 | 6 | urlWithQueryParams : List ( String, String ) -> String -> String 7 | urlWithQueryParams queryParams url = 8 | if List.isEmpty queryParams then 9 | url 10 | 11 | else 12 | url ++ "?" ++ joinUrlEncoded queryParams 13 | 14 | 15 | joinUrlEncoded : List ( String, String ) -> String 16 | joinUrlEncoded args = 17 | String.join "&" (List.map queryPair args) 18 | 19 | 20 | queryPair : ( String, String ) -> String 21 | queryPair ( key, value ) = 22 | queryEscape key ++ "=" ++ queryEscape value 23 | 24 | 25 | queryEscape : String -> String 26 | queryEscape = 27 | Url.percentEncode >> replace "%20" "+" 28 | 29 | 30 | replace : String -> String -> String -> String 31 | replace old new = 32 | String.split old >> String.join new 33 | -------------------------------------------------------------------------------- /src/Graphql/Internal/Builder/Argument.elm: -------------------------------------------------------------------------------- 1 | module Graphql.Internal.Builder.Argument exposing (Argument(..), optional, required) 2 | 3 | {-| **WARNING** `Graphql.Internal` modules are used by the `@dillonkearns/elm-graphql` command line 4 | code generator tool. They should not be consumed through hand-written code. 5 | 6 | Internal functions for use by auto-generated code from the `@dillonkearns/elm-graphql` CLI. 7 | 8 | @docs Argument, optional, required 9 | 10 | -} 11 | 12 | import Graphql.Internal.Encode as Encode exposing (Value) 13 | import Graphql.OptionalArgument as OptionalArgument exposing (OptionalArgument) 14 | 15 | 16 | {-| Argument type. 17 | -} 18 | type Argument 19 | = Argument String Value 20 | 21 | 22 | {-| Used for passing optional arguments in generated code. 23 | -} 24 | optional : String -> OptionalArgument a -> (a -> Value) -> Maybe Argument 25 | optional fieldName maybeValue toValue = 26 | case maybeValue of 27 | OptionalArgument.Present value -> 28 | Argument fieldName (toValue value) 29 | |> Just 30 | 31 | OptionalArgument.Absent -> 32 | Nothing 33 | 34 | OptionalArgument.Null -> 35 | Argument fieldName Encode.null 36 | |> Just 37 | 38 | 39 | {-| Used for passing required arguments in generated code. 40 | -} 41 | required : String -> a -> (a -> Value) -> Argument 42 | required fieldName raw encode = 43 | Argument fieldName (encode raw) 44 | -------------------------------------------------------------------------------- /src/Graphql/Operation.elm: -------------------------------------------------------------------------------- 1 | module Graphql.Operation exposing (RootMutation, RootQuery, RootSubscription) 2 | 3 | {-| This module contains types used to annotate top-level queries which can be 4 | built up using functions in code generated by the `@dillonkearns/elm-graphql` command line tool 5 | and sent using functions in the `Graphql.Http` module. 6 | 7 | @docs RootMutation, RootQuery, RootSubscription 8 | 9 | -} 10 | 11 | 12 | {-| Type for top-level queries which can be sent using functions 13 | from `Graphql.Http`. 14 | -} 15 | type RootQuery 16 | = RootQuery 17 | 18 | 19 | {-| Type for top-level mutations which can be sent using functions 20 | from `Graphql.Http`. 21 | -} 22 | type RootMutation 23 | = RootMutation 24 | 25 | 26 | {-| Type for top-level subscriptions. Subscriptions use WebSockets, for which Elm needs ports. See 27 | for an example of using 28 | `elm-graphql` subscriptions with ports. 29 | -} 30 | type RootSubscription 31 | = RootSubscription 32 | -------------------------------------------------------------------------------- /src/Graphql/RawField.elm: -------------------------------------------------------------------------------- 1 | module Graphql.RawField exposing (RawField(..), name, typename) 2 | 3 | import Graphql.Internal.Builder.Argument as Argument exposing (Argument) 4 | 5 | 6 | type RawField 7 | = Composite String (List Argument) (List RawField) 8 | | Leaf { typeString : String, fieldName : String } (List Argument) 9 | 10 | 11 | name : RawField -> String 12 | name field = 13 | case field of 14 | Composite fieldName argumentList fieldList -> 15 | fieldName 16 | 17 | Leaf { typeString, fieldName } argumentList -> 18 | fieldName 19 | 20 | 21 | typename : RawField 22 | typename = 23 | Leaf { typeString = "", fieldName = "__typename" } [] 24 | -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "types": ["node"], 4 | "module": "commonjs", 5 | "target": "es5", 6 | "strict": true, 7 | "sourceMap": false, 8 | "lib": ["es2015", "es2017.object"] 9 | }, 10 | "exclude": ["node_modules", "generated"] 11 | } 12 | --------------------------------------------------------------------------------