@times-components/provider-queries

2.21.0 • Public • Published

Provider Queries

The home for all GraphQL queries to be shared by Times Components. Having them in once place makes it easier to share them around and keep specific linting rules in one place

How to use

Simply import a query .graphql file:

import exampleImport from "./example.graphql";

This is possible by using the babel-plugin-import-graphql plugin. Typically you would pass this into an Apollo GraphQL HOC such as connect from the provider package. They can also be used for testing and generating fixtures.

Contributing

Please read CONTRIBUTING.md before contributing to this package

Running the code

Please see our main README.md to get the project running locally

Development

The code can be formatted and linted in accordance with the agreed standards.

yarn fmt
yarn lint

Readme

Keywords

Package Sidebar

Install

npm i @times-components/provider-queries

Weekly Downloads

3,669

Version

2.21.0

License

BSD-3-Clause

Unpacked Size

452 kB

Total Files

45

Last publish

Collaborators

  • marcincuber
  • newsuk
  • news-tools