Skip to content

Commit

Permalink
Add additional queries to funnel information to the sourcing plugin.
Browse files Browse the repository at this point in the history
  • Loading branch information
andris-sevcenko committed Nov 30, 2021
1 parent 9c07d1d commit 4329e40
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

## Unreleased

### Added
- Add additional queries to funnel information to the sourcing plugin. ([craftcms/gatsby-source-craft#58](https://github.com/craftcms/gatsby-source-craft/issues/58))

### Changed
- Exposed interface names are now correctly prefixed. ([craftcms/gatsby-source-craft#58](https://github.com/craftcms/gatsby-source-craft/issues/58))

Expand Down
15 changes: 15 additions & 0 deletions src/gql/queries/Sourcing.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,21 @@ public static function getQueries($checkToken = true): array
'resolve' => DeletedNodeResolver::class . '::resolve',
'description' => 'Return the list of nodes deleted since a point in time.'
],
'gatsbyHelperVersion' => [
'type' => Type::string(),
'resolve' => function () {
return Plugin::getInstance()->version;
},
'description' => 'Return the verison of the currently installed Helper plugin version.'
],
'gqlTypePrefix' => [
'name' => 'gqlTypePrefix',
'type' => Type::string(),
'resolve' => function () {
return Craft::$app->getConfig()->getGeneral()->gqlTypePrefix;
},
'description' => 'Return the value of the `gqlTypePrefix` config setting.'
]
];
}
}

0 comments on commit 4329e40

Please sign in to comment.