1.1.12 ā€¢ Published 1 month ago

@jahia/data-helper v1.1.12

Weekly downloads
8
License
SEE LICENSE IN .....
Repository
-
Last release
1 month ago

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

šŸ¤ 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.1.12

1 month ago

1.1.11

3 months ago

1.1.9

4 months ago

1.1.8

4 months ago

1.1.10

4 months ago

1.1.7

5 months ago

1.1.6

6 months ago

1.1.5

8 months ago

1.1.1

11 months ago

1.1.0

11 months ago

1.0.9

11 months ago

1.1.4

11 months ago

1.1.3

11 months ago

1.1.2

11 months ago

1.0.8

1 year ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.2

3 years ago

1.0.3

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago

0.0.26

3 years ago

0.0.25

4 years ago