.GQL 文件扩展名

GraphQL Source Code File

开发者 The GraphQL Foundation
受欢迎程度
2.0  |  1 
 

什么是 GQL 文件?

A GQL file is a text file that contains source code written in the GraphQL query language. It may contain GraphQL operations, such as queries, mutations, and subscriptions, that specify the data an application wants to retrieve or modify. GQL files can also contain fragments or definitions that describe the types and fields available through a GraphQL service.

更多信息

在 Microsoft Visual Studio Code 1.1 中打开的 .gql 文件截图
在 Microsoft Visual Studio Code 1.1 中打开的 GQL 文件

GraphQL is a query language and system that applications use to communicate with data services through APIs. For example, a mobile app can use GraphQL to request a user's name, profile picture, and recent messages from a web API in a single request.

Developers use GraphQL to describe the data their applications need and often store GQL files alongside other source-code files in a software project. This allows them to keep GraphQL operations and definitions separate from the application's other code. GQL files can be used with applications written in different programming languages and running on different operating systems.

注: While the .gql extension is used for GraphQL files, the .graphql extension (.GRAPHQL files) is more common. However, the GraphQL specification does not require a particular file extension.

如何打开 GQL 文件

You can open GQL files with any text editor or source-code editor, such as Microsoft Visual Studio Code, to view and edit their contents. GraphQL development tools and IDE extensions can provide features such as syntax highlighting, validation, and code completion for GQL files. Tools such as GraphiQL can also help developers write and test GraphQL requests by sending them to a GraphQL service (e.g., GitHub GraphQL API) and displaying the results.

使用File Viewer Plus打开 400 多种文件格式。免费下载

可打开 GQL 文件的程序

All Platforms
Windows
操作系统自带
Mac
操作系统自带
Linux
免费
Web
免费
分类: 开发者
更新时间: 2026-09-14

验证者 FileInfo.com

FileInfo.com 团队 独立研究了本页面列出的 GraphQL Source Code 文件格式和 Mac, Windows, and Linux 应用。 我们的目标是达到 100% 的准确率,并且仅发布我们已验证过的文件类型信息。

如果您想为此页面提出新增或更新建议,请告诉我们