.GRAPHQL Extension de fichier

GraphQL Source Code File

Développeur The GraphQL Foundation
Popularité
3.0  |  1 Vote
 

Qu'est-ce qu'un fichier GRAPHQL ?

A GRAPHQL file is a plain-text file that contains instructions written in the GraphQL language, an open-source query language and server-side runtime for APIs that lets clients request the exact data they need. It may contain queries that retrieve data, mutations that change data, and subscriptions that receive updates when data changes. GRAPHQL files can also store reusable fragments and definitions that describe the types and fields available through a GraphQL service.

Plus d'informations

Capture d'écran d'un fichier .graphql dans Microsoft Visual Studio Code 1.1
Fichier GRAPHQL ouvert dans Microsoft Visual Studio Code 1.1

Developers use GRAPHQL files to define the information an application wants to retrieve from a GraphQL service, such as a user's name, email address, or list of recent posts. They commonly save GraphQL operations in GRAPHQL files to organize, reuse, and manage them as part of a software project. Keeping these operations in separate files also makes them easier to read, modify, and test without mixing them with the application's other source code.

For example, a developer is building a shopping app and wants to display a product's name, price, availability, and customer reviews. Instead of making separate requests for each piece of information, the app can send one GraphQL request specifying exactly what it needs. The GraphQL service then returns just those requested fields, and the developer can use the results to display the product page in the app.

REMARQUE: The .graphql extension is a common naming convention for these files, although GraphQL does not require a specific file extension. The .gql extension (.GQL file) may also be used.

Comment ouvrir un fichier GRAPHQL

You can open GRAPHQL files with any text editor or source-code editor, such as Microsoft Visual Studio Code, Microsoft Notepad, or Apple TextEdit. Many source-code editors and development environments also provide helpful GraphQL-specific features, including syntax highlighting, validation, and code completion. GraphQL tools, such as GraphiQL, can help developers test and execute the GraphQL operations stored in these files against a GraphQL service, such as Shopify's GraphQL Admin API.

Ouvrez plus de 400 formats de fichiers avec File Viewer Plus.Téléchargement gratuit

Programmes qui ouvrent les fichiers GRAPHQL

All Platforms
Windows
Inclus avec l'OS
Mac
Inclus avec l'OS
Linux
Gratuit
Web
Gratuit

Vérifié par FileInfo.com

L'équipe FileInfo.com a mené des recherches indépendantes sur le format de fichier GraphQL Source Code et les applications Mac, Windows, and Linux répertoriées sur cette page. Notre objectif est une précision de 100%, et nous ne publions que des informations sur les types de fichiers que nous avons vérifiés.

Si vous souhaitez suggérer des ajouts ou des mises à jour de cette page, faites-le-nous savoir.