1 | ;
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | exports.getDescriptionNode = void 0;
|
4 | const graphql_1 = require("graphql");
|
5 | function getDescriptionNode(obj) {
|
6 | if (obj.astNode?.description) {
|
7 | return {
|
8 | ...obj.astNode.description,
|
9 | block: true,
|
10 | };
|
11 | }
|
12 | if (obj.description) {
|
13 | return {
|
14 | kind: graphql_1.Kind.STRING,
|
15 | value: obj.description,
|
16 | block: true,
|
17 | };
|
18 | }
|
19 | }
|
20 | exports.getDescriptionNode = getDescriptionNode;
|