snowballtools-base/packages/gql-client/src/gql-queries.ts
prathamesh0 dc88b2c301 Set up a GQL client package (#19)
* Set up GQL client package

* Add client method to get user

---------

Co-authored-by: neeraj <neeraj.rtly@gmail.com>
2024-02-01 11:37:57 +05:30

14 lines
147 B
TypeScript

import { gql } from '@apollo/client';
export const getUser = gql`
query {
user {
id
name
email
createdAt
updatedAt
}
}
`;