Dataset Viewer
Auto-converted to Parquet Duplicate
Question
stringlengths
49
210
Response
stringlengths
1
474
What system is Gatsby's documentation structure based on?
Di谩taxis documentation system.
Which parameter in Gatsby.js's `actions.printTypeDefinitions` function is used to specify whether field types should be included in the schema output, and what is its default value?
`withFieldTypes`, defaults to `true`
What is the primary purpose of using Gatsby's built-in React components like Gatsby Link and Gatsby Script?
To improve site performance and user experience.
What function should be used instead of `setJob` to update a long-running job in Gatsby.js?
createJobV2
What operators are used in Gatsby.js to filter results based on title patterns while excluding specific titles?
`regex` and `ne`
Which operator in Gatsby.js enables filtering based on whether a field returns an array of elements?
elemMatch
Which parameter in the IGatsbyPlugin function determines the inclusion or exclusion of specific types when writing a GraphQL schema to a file?
`include` and `exclude` objects
What is the purpose of the `@proxy` extension in Gatsby schema customization, and what argument does it take?
The purpose of the `@proxy` extension in Gatsby schema customization is to proxy properties with invalid GraphQL characters to valid field names. It takes a `from` argument.
In Gatsby.js, which extension is used to handle field names with invalid characters in GraphQL by mapping them to valid names?
@proxy
What parameter allows a redirect to be triggered even if the fromPath matches a piece of content in Gatsby.js?
force
What unique feature does Netlify use to update and generate a URL for each pull/merge request?
Deploy Previews
What detail must be checked in the plugin README when adding plugins to a Gatsby site to ensure proper functionality?
Configuration options and additional steps required for the plugin.
In Gatsby.js, what is the consequence of plugin options being stringified by Gatsby?
They cannot be functions.
What are the recognized privileges of the Maintainer role in the Gatsby community?
- Invitation to the `@Maintainer` role on Discord - Invitation to the `Maintainers` team on GitHub - New name color on Discord: Blue - Invitation to the private `#maintainers` channel on Discord - Ability to moderate Discord - Ability to join the `@Moderator` role on Discord (optional) - Ability to review GitHub PRs - Ability to vote on some initiatives
What is a potential consequence of violating the Code of Conduct for Gatsby.js as determined by the reviewers?
Permanent ban from the GitHub org and Discord server.
How can you change the default package manager for new Gatsby projects using the CLI command?
gatsby options set package-manager yarn
What should be ensured when adding headings to ensure accessibility for users of assistive technology?
Ensure the use of a logical heading hierarchy (h2, h3, h4) for an accessible content outline.
What are two methods to exit the Gatsby Node.js REPL interactive shell?
Ctrl+C or Ctrl+D twice, or type `.exit` and press Enter
What principle is suggested for overcoming complexity by redesigning building blocks in software development?
Step down a layer or two and redesign the building blocks at that layer.
What unique feature of Gatsby's use of GraphQL allows it to avoid running additional services like a database in production?
Gatsby uses GraphQL at build-time.
What is the behavior of explicit type definitions when combined with inferred field types in Gatsby.js version 4's `createTypes` function?
Explicit type definitions from `createTypes` are merged with inferred field types by default.
In Gatsby.js, what directive can be used in createTypes to prevent any inference on a GraphQL type's field definitions?
@dontInfer
How can you limit the resource-intensive watch command to specific packages when contributing to the Gatsby.js monorepo?
`yarn run watch --scope={gatsby,gatsby-cli}`
What is the purpose of the `ownerNodeId` parameter in the `createPage` function in Gatsby.js?
The `ownerNodeId` parameter is the id of the node that owns the page, used for routing users to previews via the `unstable_createNodeManifest` action.
What directive should be used in Gatsby.js version 4.24+ to prevent running inference on a GraphQL type when customizing schemas?
@dontInfer
Which directive in Gatsby.js schema customization is used to automatically add inferred fields to a defined type?
@infer
In Gatsby.js, what directive should be used in type definitions to ensure no inference is run on a type?
@dontInfer
What is ignored when merging additional configuration into the current webpack config using `setWebpackConfig` in Gatsby.js?
entry, output, target, resolveLoaders
What Gatsby.js directive merges explicit type definitions with inferred field types by default?
@infer
What package manager version is required for contributing to the Gatsby monorepo?
Yarn version 1
What role does the Same-Site cookie attribute play in preventing cross-site request forgery (CSRF) attacks in web applications?
The Same-Site cookie attribute restricts cookies from being sent with cross-site requests, thus helping to prevent CSRF attacks.
What determines the priority of a user鈥檚 project and themes when resolving shadow paths in Gatsby.js according to the shadowing algorithm?
The priority is determined by prepending the user's project to the theme list, ensuring the user's project takes precedence. Themes are processed in reverse order so "the last theme wins."
What does the `withFieldTypes` parameter control when using `actions.printTypeDefinitions` in Gatsby.js?
Includes field types; defaults to `true`.
When configuring Babel in Gatsby.js, which parameter allows you to add new plugins or merge options into existing plugins?
setBabelPlugin
What happens if two plugins attempt to use the same field name when extending a node in Gatsby.js?
The second plugin cannot use the same field name.
What is one method mentioned for persisting a shopping cart across site pages and sessions when using Gatsby with an e-commerce backend?
Local storage
What is one reason organizations choose Gatsby for their JAMStack e-commerce sites?
Performance optimization.
What is the effect of setting the `withFieldTypes` property to `false` in the `createSchemaCustomization` function when writing a GraphQL schema in Gatsby.js?
It excludes field type definitions from the output.
What is the purpose of the `ownerNodeId` parameter in the Gatsby.js `createPage` function?
The `ownerNodeId` parameter is the ID of the node that owns the page, used for routing users to previews via the `unstable_createNodeManifest` public action. It identifies the main node queried on the page.
What are the performance implications of using `pageContext` in Gatsby.js templates at build time?
Performance implications include: 1. **Advantages**: Using `pageContext` eliminates the need for GraphQL queries in templates, potentially reducing build time. 2. **Memory Issues**: Can lead to "out of memory" crashes for large sites due to storing too much data in-memory. 3. **Rebuilds**: Changes require a full site rebuild, impacting incremental build capabilities. 4. **Hot Reloading**: Lack of hot reload means changes aren't immediately reflected during development.
What GraphQL directive would you use to exclude a part of a query based on a variable's value?
@skip(if: $variable)
What is the alternative method recommended for updating long-running jobs instead of using 'setJob'?
createJobV2
What domain does Unified Hosting on Gatsby Cloud use for all new build deployments?
gatsbyjs.io
In Gatsby.js, which action provides a major performance improvement for source plugins by allowing them to manage their own node deletion without stale node checks?
enableStatefulSourceNodes
In Gatsby.js, how can you verify support for managing source plugins without automatically deleting untouched nodes?
hasFeature('stateful-source-nodes')
What is the role of the `extend` function in defining a field extension within Gatsby.js's `createFieldExtension` method?
The `extend` function returns a (partial) field config and receives extension options and the previous field config as arguments.
In the context of Gatsby.js, what is the purpose of adding field extensions to the GraphQL schema using Type Builders or SDL?
To define custom behavior for fields via directives in SDL or the `extensions` prop with Type Builders.
In Gatsby.js, when using the `createRedirect` function, what parameter determines if the redirect should also be handled by the client in the browser?
redirectInBrowser
What is the purpose of the `ownerNodeId` in Gatsby.js when using the `createPage` function?
The id of the node that owns this page, used for routing users to previews via the unstable_createNodeManifest action.
What parameter placeholders are mentioned for defining URL patterns in the `addRemoteFileAllowedUrl` function for Gatsby.js?
:id
What is the responsibility of the user when merging a third-party schema into the main schema in Gatsby.js?
Ensure the third-party schema does not break the main Gatsby schema, such as by namespacing it.
How does the `StaticImage` component in Gatsby.js handle remote images in terms of build and site updates?
The `StaticImage` component downloads and resizes remote images at build time. Once downloaded, these images will not update on your site until you rebuild, even if the image changes on the remote server.
What is the primary difference in usage between the `StaticImage` and `GatsbyImage` components in Gatsby.js for handling images?
StaticImage is for images that remain the same every time, while GatsbyImage is for dynamic images that can change, such as those from a CMS.
What accessibility compliance level is the Gatsby framework partially meeting according to their accessibility statement?
WCAG 2.1 AA
What is the purpose of Gatsby's serverless functions in dynamic application development?
Gatsby's serverless functions allow building dynamic applications by enabling operations such as form submissions, user authentication, and connecting to external services without managing servers. They simplify API development, testing, and deployment, providing effortless scaling and integration with frontend code.
What label is automatically added to a pull request when it is prepared for review in the Gatsby GitHub repository?
status: triage needed
Which Gatsby concept allows for the seamless integration of different content, APIs, and services into a single web experience using a unified data layer?
GraphQL data layer
What advantage does using Gatsby Themes provide in terms of configuration and functionality management?
Centralized management and versioning of configuration and functionality.
What command should be used in Git to manually run the linter with Prettier in the base directory of a Gatsby project?
npm run format
What is a key advantage of using Gatsby Cloud's Image CDN in terms of frontend performance?
Serving CDN hosted images on the same domain as your Gatsby Cloud site.
What is the purpose of the `gatsby-dev-cli` when testing changes in a Gatsby test site?
To copy and watch for changes in Gatsby packages, syncing them with a test site.
How does the `createPagesStatefully` API function differently from the `createPages` API in Gatsby.js?
`createPagesStatefully` allows plugins to manage creating and removing pages themselves in response to changes in data not managed by Gatsby, whereas `createPages` is regularly called by Gatsby as its data changes.
Which type of image handling does CSS for background images fail to support effectively, compared to the `<picture>` element, specifically in Gatsby.js?
Fallback for next-gen image formats such as AVIF and WebP.
What happens if there are errors in the GraphQL query used inside the `createPages` API in Gatsby.js?
The build process will fail, and an error will be thrown.
What command should you run to limit the resource-intensive watch process to only the package 'gatsby' when working with Gatsby.js?
yarn run watch --scope=gatsby
What is the specific function available in Gatsby.js for declaring a URL pattern that should be allowed for Image or File CDN, and in which lifecycle stage is it available?
addRemoteFileAllowedUrl, onPreInit
What is the responsibility of the user when adding a third-party schema with the `addThirdPartySchema` function in Gatsby.js to avoid breaking the main Gatsby Schema?
Namespacing the schema.
What is a potential risk when merging a third-party GraphQL schema into the main Gatsby schema, and how can it be mitigated?
Schema conflicts; mitigate by namespacing the schema.
What Gatsby.js function can be used during the createSchemaCustomization stage to add custom behavior to GraphQL fields using extensions?
createFieldExtension
What determines the string returned by the 'motivate' field extension when it is resolved in Gatsby.js?
If the motivation value is greater than 5, it returns "Work! Work! Work!"; otherwise, it returns "Maybe tomorrow."
What is the purpose of the `onCreatePage` API in Gatsby.js?
To programmatically manipulate pages when a new page is created.
What label is added by a team member to an RFC that is accepted in Gatsby.js?
status: accepted
What is the first extension point called in the Gatsby.js build process according to the current reference?
onPreBuild
What object property must be set when creating a new node using `createNode` in Gatsby.js?
id
What is the term used for the process that ensures substantial changes receive a consistent and controlled path before being accepted in Gatsby.js?
RFC process
What directive in Gatsby.js disables inference on a type and requires explicit field definitions?
@dontInfer
What is the purpose of the `@proxy` directive in Gatsby.js schema customization?
To proxy invalid field names to valid GraphQL field names.
What is a potential consequence of using `Date.now()` in `gatsby-node.js` for Gatsby builds?
Rebuild of all pages.
What is a common workaround for using an npm module in Gatsby that expects `window` to be defined during server-side rendering?
Use a package like loadable-components to dynamically load the module only on the client side.
What is the effect of omitting the `updatedAtUTC` parameter when using the `unstable_createNodeManifest` function in Gatsby.js?
A manifest is created for every node that gets called.
What is the recommended approach to modify top-level Babel options while ensuring plugins and presets are not affected in Gatsby.js?
setBabelOptions
What method is deprecated and should be replaced with createJobV2 in the context of managing job updates in Gatsby.js?
setJob
What should be used instead of `setJob` for updating long-running processes in the Gatsby.js configuration?
createJobV2
What is the potential risk associated with using `replaceWebpackConfig` in the Gatsby.js configuration process?
It can be dangerous and break Gatsby if certain configuration options are changed.
What parameter in the `createRedirect` function determines if the redirect will be handled by Gatsby in the browser?
redirectInBrowser
What directive would you use in Gatsby.js to prevent type inference on a GraphQL type definition?
@dontInfer
Which Gatsby.js function is used to add type definitions to the GraphQL schema?
createTypes
What operator in Gatsby's GraphQL query syntax is used to match a field that returns an array of elements?
elemMatch
What operator allows Gatsby to use wildcard matching for non-empty strings in titles?
glob
Which Gatsby.js query operator requires a pattern to match titles that do not start with the letter 'T'?
regex
What is the purpose of the `ownerNodeId` parameter in Gatsby.js `createPage`, and which node must this ID correspond to?
The `ownerNodeId` parameter in Gatsby.js `createPage` corresponds to the ID of the node that is queried on the page via a GraphQL query.
In Gatsby.js, what is the default filename for the GraphQL schema output when using the printTypeDefinitions method?
schema.gql
How can query variables be passed when creating pages in Gatsby.js?
Pass query variables in the `context` object when creating pages.
What key value can be grouped to determine the total number of occurrences and relevant titles in a specific category using Gatsby.js GraphQL queries?
fieldValue
What feature can you use in Gatsby to reduce the amount of JavaScript shipped to the client?
Partial Hydration
What is the required majority for a Maintainer nomination vote to pass?
70%+
What does Gatsby use to intercept and handle local links within Markdown files for behavior similar to `gatsby-link`?
`gatsby-plugin-catch-links`
What key must be set in the frontmatter of a markdown document in Gatsby.js to disable the Table of Contents?
disableTableOfContents
What is the role of the `ownerNodeId` in the `createPage` function when using Gatsby.js?
The id of the node that owns this page, used for routing users to previews with the `unstable_createNodeManifest` action.
In what locale is the birthday date format set for the AuthorJson type in the Gatsby.js schema customizations?
ru
End of preview. Expand in Data Studio

Samples in this benchmark were generated by RELAI using the following data source(s):

Data Source Name: Gatsby.js

Documentation Data Source Link: https://www.gatsbyjs.com/docs/

Data Source License: https://github.com/gatsbyjs/gatsby/blob/master/LICENSE

Data Source Authors: Gatsby

AI Benchmarks by Data Agents 漏 2025 RELAI.AI 路 Licensed under CC BY 4.0. Source: https://relai.ai

Downloads last month
6