gatsby-source-huray-cms

1.2.0 • Public • Published

gatsby-source-huray-cms

Gatsby source plugin to fetch contents from Huray CMS

How to use

// In your gatsby-config.js
plugins: [
    {
        resolve: 'gatsby-source-huray-cms',
        options: {
            url: '', // URL of Huray CMS
            username: '', // Username for login user
            password: '', // Password for login user
            imageBaseUrl: '/',
        },
    },
]

How to query

{
    allHurayContent {
        edges {
            node {
                contentId
                title
                description
                category
                tags
                created_at
                updated_at
                author { # HurayUser node
                    userId
                    username
                    email
                }
                customFields {
                    key
                    label
                    type
                    value
                }
                attachments { # HurayAttachment node
                    attachmentId
                    filename
                    content_type
                    byte_size
                }
            }
        }
    }
}

Readme

Keywords

Package Sidebar

Install

npm i gatsby-source-huray-cms

Weekly Downloads

1

Version

1.2.0

License

MIT

Unpacked Size

8.46 kB

Total Files

7

Last publish

Collaborators

  • cometkim