hasura/graphqurl là dự án JavaScript với 3.4k sao trong nhóm Developer Tools. curl for GraphQL with autocomplete, subscriptions and GraphiQL. Also a dead-simple universal javascript GraphQL client.
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
The createClient function is available as a named export. It takes init options and returns client.
const { createClient } = require('graphqurl');
options: [Object, required] graphqurl init options with the following properties:
endpoint: [String, required] GraphQL endpoint
headers: [Object] Request header, defaults to {}. These headers will be added along with all the GraphQL queries, mutations and subscriptions made through the client.
websocket: [Object] Options for configuring subscriptions over websocket. Subscriptions are not supported if this field is empty.
endpoint: [String, ] WebSocket endpoint to run GraphQL subscriptions.
shouldRetry: [Boolean] Boolean value whether to retry closed websocket connection. Defaults to false.
parameters: [Object] Payload to send the connection init message with
onConnectionSuccess: [void => void] Callback function called when the GraphQL connection is successful. Please not that this is different from the websocket connection being open. Please check the followed protocol for more details.
onConnectionError: [error => null] Callback function called if the GraphQL connection over websocket is unsuccessful
onConnectionKeepAlive: [void => null]: Callback function called when the GraphQL server sends GRAPHQL_CONNECTION_KEEP_ALIVE messages to keep the connection alive.
query: [String required] The GraphQL query or mutation to be executed over HTTP
variables: [Object] GraphQL query variables. Defaults to {}
headers: [Object] Header overrides. If you wish to make a GraphQL query while adding to or overriding the headers provided during initalisations, you can pass the headers here.
successCallback: [response => null] Success callback which is called after a successful response. It is called with the following parameters:
response: The response of your query
errorCallback: [error => null] Error callback which is called after the occurrence of an error. It is called with the following parameters:
error: The occurred error
Returns: [Promise (response) ] This function returns the response wrapped in a promise.
response: response is a GraphQL compliant JSON object in case of queries and mutations.
client.subscribe: [(subscriptionOptions, eventCallback, errorCallback) => Function (stop)]
subscriptionOptions: [Object required]
subscription: [String required] The GraphQL subscription to be started over WebSocket
variables: [Object] GraphQL query variables. Defaults to {}
onGraphQLData: [(response) => null] You can optionally pass this function as an event callback
onGraphQLError: [(response) => null] You can optionally pass this function as an error callback
onGraphQLComplete: [() => null] Callback function called when the GraphQL subscription is declared as complete by the server and no more events will be received
eventCallback: [(response) => null] Event callback which is called after receiving an event from the given subscription. It is called with the following parameters:
event: The received event from the subscription
errorCallback: [error => null] Error callback which is called after the occurrence of an error. It is called with the following parameters:
error: The occurred error
Returns: [void => null] This is a function to stop the subscription
hasura/graphqurl thuộc nhóm Developer Tools trên TopGit, cùng 7 topic GitHub. Trang Trending và Topics liệt kê các repo cùng số sao và cùng ngôn ngữ để so sánh.
Đọc thêm về hasura/graphqurl ở đâu?
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/hasura/graphqurl là nguồn chính thức.
hasura/graphqurl có bao nhiêu sao?
hasura/graphqurl có 3.4k sao GitHub — tải lại trang để xem số mới nhất, hoặc xem trực tiếp github.com/hasura/graphqurl. TopGit phản chiếu số sao của GitHub nhưng không cam kết đến từng phút.
hasura/graphqurl có phải mã nguồn mở không?
Có — hasura/graphqurl phát hành theo license Apache-2.0, nghĩa là mã nguồn mở để đọc, fork và (tùy license) tái sử dụng. Mã: github.com/hasura/graphqurl.
hasura/graphqurl còn đang phát triển không?
Commit gần nhất trên hasura/graphqurl là 1.7 năm trước (theo timestamp GitHub). Repo có 101 fork — một chỉ báo về mức độ quan tâm của cộng đồng.
hasura/graphqurl dùng license gì?
hasura/graphqurl phát hành theo license Apache-2.0. Nên mở file LICENSE trên GitHub để xác nhận — license metadata đôi khi lệch với thực tế dự án.
hasura/graphqurl là gì?
hasura/graphqurl (hasura/graphqurl) là dự án JavaScript trên GitHub. Theo mô tả gốc: curl for GraphQL with autocomplete, subscriptions and GraphiQL. Also a dead-simple universal javascript GraphQL client.
hasura/graphqurl viết bằng ngôn ngữ gì?
hasura/graphqurl chủ yếu viết bằng JavaScript. Trường "language" của GitHub dựa trên phần lớn byte ở nhánh mặc định.
Đọc đầy đủ README ở tab phía trên.
graphqurl có đáng để bạn bỏ thời gian?
ChatGPT, Claude và Perplexity đều đọc được trang này. Hỏi thử xem họ nghĩ gì về graphqurl.