Skip to main content
Community Plugin
View plugin on GitHub
See starters using this

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
                }
            }
        }
    }
}