Add .graphql file type export

Created on 25 April 2024, 8 months ago
Updated 29 August 2024, 4 months ago

Problem/Motivation

For our frontend we would like to have a .graphql schema file. This will help with our development experience, without having to manually change the file extensions from .graphqls to .graphql

Feature request
Status

Needs review

Version

2.0

Component

Code

Created by

🇧🇪Belgium cedricl

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

  • Issue created by @cedricl
  • Merge request !3Add .graphql export → (Open) created by cedricl
  • Issue was unassigned.
  • Status changed to Needs review 8 months ago
  • Pipeline finished with Success
    8 months ago
    Total: 179s
    #156200
  • 🇭🇺Hungary Sweetchuck Budapest

    @cedricl Maybe I am mistaken, but I think you can have whatever file name you want.

    $settings['graphql_export'] = [
      'graphql_compose_server' => [
        'graphqls' => "../$site_path/graphql/schema.graphql",
        'json' => "../$site_path/graphql/schema.json",
      ],
    ];
    

    However, the default value and the example in the README.md should be something that is instantly usable.

  • 🇦🇺Australia almunnings Melbourne, 🇦🇺

    Yeah that filename is just the default filename, incase people used a dir path in the output location.

    You could make it myfile.potato
    Don't really need this patch.

    As sweetchuck says.

Production build 0.71.5 2024