@jahia/data-helper v1.1.12
Provide helpers (react hooks, utily function, ...) to manipulate jahia datas
Install
yarn add @jahia/data-helper
Usage
@jahia/data-helper include graphql fragment to reduce the size of the graphql queries and help you with mandatory field to update apollo cache.
You can use it like this:
import gql from 'graphql-tag';
import {PredefinedFragments} from '@jahia/data-helper';
export const ContentPickerFilledQuery = gql`
query contentPickerFilledQuery($uuid: String!, $language: String!, $needToFetch: Boolean!) {
jcr @include(if: $needToFetch) {
result: nodeById(uuid: $uuid) {
displayName(language: $language)
primaryNodeType {
displayName(language: $language)
icon
}
...NodeCacheRequiredFields
}
}
}
${PredefinedFragments.nodeCacheRequiredFields.gql}
`;
Author
š¤ Jahia
- Website: https://www.jahia.com
- Twitter: @Jahia
- Github: @Jahia
- LinkedIn: @Jahia
š¤ Contributing
Contributions, issues and feature requests are welcome!Feel free to check issues page.
Show your support
Give a āļø if this project helped you!
š License
Copyright Ā© 2020 Jahia. This project is SEE LICENSE IN ../../LICENSE.txt FILE licensed.
This README was generated with ā¤ļø by readme-md-generator
1 month ago
3 months ago
4 months ago
4 months ago
4 months ago
5 months ago
6 months ago
8 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
4 years ago