-
-
Notifications
You must be signed in to change notification settings - Fork 5
Closed
Labels
Description
It seems that this package doesn't like to be run under ESM
import graphql from "github-openapi-graphql-query";
const QUERY = `
query($version: String) {
endpoints(version: $version, ghecCompatibilityMode: true) {
url
triggersNotification
}
}
`;
const {
data: { endpoints },
} = await graphql(QUERY, {
version,
});
Results in TypeError: Cannot read properties of null (reading 'endpoints')