Migrate to Netlify Today

Netlify announces the next evolution of Gatsby Cloud. Learn more

ContactSign Up
Community Plugin
View plugin on GitHub

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
                }
            }
        }
    }
}
© 2023 Gatsby, Inc.