Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Because changes in a .graphql files doesn't recompile app. facebook/create-react-app#5580
- Loading branch information
Showing
14 changed files
with
67 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { gql } from "@apollo/client/core"; | ||
import { UserInfo } from "./UserInfo"; | ||
|
||
export const CreateUser = gql` | ||
mutation CreateUser($createUserInput: CreateUserInput!) { | ||
createUser(createUserInput: $createUserInput) { | ||
...UserInfo | ||
} | ||
} | ||
${UserInfo} | ||
`; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { gql } from "@apollo/client/core"; | ||
import { UserInfo } from "./UserInfo"; | ||
|
||
export const GetUser = gql` | ||
query GetUser($id: ID!) { | ||
user(id: $id) { | ||
...UserInfo | ||
} | ||
} | ||
${UserInfo} | ||
`; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { gql } from "@apollo/client/core"; | ||
|
||
export const RemoveUser = gql` | ||
mutation RemoveUser($id: ID!) { | ||
removeUser(id: $id) | ||
} | ||
`; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { gql } from "@apollo/client/core"; | ||
import { UserInfo } from "./UserInfo"; | ||
|
||
export const UpdateUser = gql` | ||
mutation UpdateUser($id: ID!, $updateUserInput: UpdateUserInput!) { | ||
updateUser(id: $id, updateUserInput: $updateUserInput) { | ||
...UserInfo | ||
} | ||
} | ||
${UserInfo} | ||
`; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { gql } from "@apollo/client/core"; | ||
|
||
export const UserInfo = gql` | ||
fragment UserInfo on User { | ||
id | ||
name | ||
username | ||
} | ||
`; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { gql } from "@apollo/client/core"; | ||
import { UserInfo } from "./UserInfo"; | ||
|
||
export const UsersList = gql` | ||
query UsersList { | ||
users { | ||
...UserInfo | ||
} | ||
} | ||
${UserInfo} | ||
`; |