2022-02-21 13:32:38 +00:00
|
|
|
import { gql } from "@apollo/client";
|
2019-10-09 06:01:52 +00:00
|
|
|
|
2022-03-09 08:56:55 +00:00
|
|
|
export const webhooksDetails = gql`
|
2019-10-11 13:35:33 +00:00
|
|
|
query WebhookDetails($id: ID!) {
|
2019-10-09 06:01:52 +00:00
|
|
|
webhook(id: $id) {
|
2022-12-01 13:42:18 +00:00
|
|
|
...WebhookDetails
|
2019-10-09 06:01:52 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|
2023-02-21 11:38:28 +00:00
|
|
|
|
|
|
|
// TODO As of Feb 15, 2023 GraphQL Codegen is unable to
|
|
|
|
// handle the introspection queries i.e. queries with the
|
|
|
|
// `__schema`. Thus, the following query is defined in
|
|
|
|
// `./utils.ts` as-is, without codegen handling it
|
|
|
|
|
|
|
|
// export const introspectionQueryList = gql`
|
|
|
|
// query IntrospectionQueryList {
|
|
|
|
// __schema {
|
|
|
|
// queryType {
|
|
|
|
// name
|
|
|
|
// fields {
|
|
|
|
// name
|
|
|
|
// description
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
// `;
|