2.0.2 • Published 4 years ago

@tituskirch/pageinfotype v2.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

A PageInfoType according to relay for apollo server.

Hot to use

First install the package

npm i @tituskirch/pageinfotype

Then import the type definition.

import pageinfotype from '@tituskirch/pageinfotype'

Now you can merge pageinfotype.typeDef with your other TypeDefs and pass it to the ApolloServer. In your TypeDefs you can now access the type PageInfo without any problems. Remember to write a resolver for PageInfo.

TypeDef

type PageInfo {
  hasNextPage: Boolean
  hasPreviousPage: Boolean
  startCursor: String!
  endCursor: String!
}

Commands

CommandAliasesDescription
npm run build:productionnpm run buildBuilds the app with the production settings.
npm run build:devnpm run build:developmentBuilds the app with the development settings.
npm run start-Starts the app with the .env file.
npm run start:watch-Starts the app with the .env file and nodemon.
npm run eslint-Run ESLint to check the code style.

Author

šŸ‘¤ Titus Kirch

šŸ¤ Contributing

Contributions, issues and feature requests are welcome!Feel free to check issues page. You can also take a look at the contributing guide.

Show your support

Give a ā­ļø if this project helped you!

šŸ“ License

Copyright Ā© 2020 Titus Kirch. This project is MIT licensed.


This README was generated with ā¤ļø by readme-md-generator

2.0.2

4 years ago

2.0.1

4 years ago

2.0.0

4 years ago

1.0.2

5 years ago

1.0.0

5 years ago