Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

chore: Update Apollo client example #1277

Merged
merged 3 commits into from
Mar 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
26 changes: 14 additions & 12 deletions project-fixtures/react-apollo-prj/GRAPHQL_OPERATIONS.md
@@ -1,26 +1,27 @@
# Extracted GraphQL Operations
## Queries

### GitHubQuery
### AppQuery

```graphql
fragment RepositoryFragment on Repository {
description
}

query GitHubQuery($first: Int!) {
query AppQuery($first: Int!) {
viewer {
repositories(first: $first) {
nodes {
id
...RepositoryFragment
...RepositoryItem_Repository
}
}
}
}

fragment RepositoryItem_Repository on Repository {
name
description
}
```

From [src/index.tsx:11:19](src/index.tsx#L11-L23)
From [src/App.tsx:6:19](src/App.tsx#L6-L17)

## Mutations

Expand All @@ -34,19 +35,20 @@ mutation UpdateMyRepository($repositoryId: ID!) {
}
```

From [src/index.tsx:25:22](src/index.tsx#L25-L31)
From [src/App.tsx:19:22](src/App.tsx#L19-L25)

## Fragments

### RepositoryFragment
### RepositoryItem_Repository

```graphql
fragment RepositoryFragment on Repository {
fragment RepositoryItem_Repository on Repository {
name
description
}
```

From [src/index.tsx:5:32](src/index.tsx#L5-L9)
From [src/RepositoryItem.tsx:4:53](src/RepositoryItem.tsx#L4-L9)

---
Extracted by [ts-graphql-plugin](https://github.com/Quramy/ts-graphql-plugin)
8 changes: 0 additions & 8 deletions project-fixtures/react-apollo-prj/apollo.config.js

This file was deleted.

1 change: 1 addition & 0 deletions project-fixtures/react-apollo-prj/local-extension.graphql
@@ -0,0 +1 @@
directive @nonreactive on FRAGMENT_SPREAD