1.1.14 • Published 10 months ago

@jahia/data-helper v1.1.14

Weekly downloads
8
License
SEE LICENSE IN .....
Repository
-
Last release
10 months 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.14

10 months ago

1.0.12-alpha.1

10 months ago

1.0.10-alpha.3

10 months ago

1.0.10-alpha.2

10 months ago

1.0.11

10 months ago

1.0.12

10 months ago

1.1.13

11 months ago

1.0.10-alpha.1

11 months ago

1.0.10-alpha.0

11 months ago

1.1.12

1 year ago

1.1.11

1 year ago

1.1.9

2 years ago

1.1.8

2 years ago

1.1.10

2 years ago

1.1.7

2 years ago

1.1.6

2 years ago

1.1.5

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.9

2 years ago

1.1.4

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.0.8

2 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.2

4 years ago

1.0.3

4 years ago

1.0.1

4 years ago

1.0.0

5 years ago

0.0.26

5 years ago

0.0.25

5 years ago