Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
1801126254_1
import { gql, useQuery } from "@apollo/client";
import { GetUser, GetUserVariables, } from "./types/GetUser";
export const GET_JOB_ROLE_GROUP_SHOW_QUERY = gql`
query GetUser($id: ID!) {
user(id: $id) {
id
first_name
last_name
}
}
`;
export const useGetUserQuery = () =>
useQuery<GetUser, GetUserVariables>(
GET_JOB_ROLE_GROUP_SHOW_QUERY,
{
variables: {
id: getResourceId(),
},
}
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment