Skip to content

Latest commit

 

History

History
23 lines (18 loc) · 437 Bytes

README.md

File metadata and controls

23 lines (18 loc) · 437 Bytes

API

In this directory, you can store functions and queries used to retrieve data from the backend.

Example (api/queries/userList.js)

import { gql } from '@apollo/client';

const USER_LIST = gql`
  query {
    UserList{
      page
      perPage
      sort
      ...
    }
  }
`;

export { USER_LIST };