Skip to content

Commit

Permalink
Add queryResponse to available plugin props
Browse files Browse the repository at this point in the history
  • Loading branch information
isaachvazquez committed Apr 15, 2020
1 parent 6cd0829 commit 3875ffa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Expand Up @@ -63,6 +63,7 @@ export class PluginPropsFactory {
return {
sdl: windowState.schema.sdl,
query: windowState.query.query,
queryResponse: windowState.query.response,
variables: windowState.variables.variables,
ctx: {
setQuery: (query: string) => this.zone.run(() => this.setQuery(windowId, query)),
Expand Down
3 changes: 3 additions & 0 deletions packages/altair-app/src/app/services/plugin/plugin.ts
Expand Up @@ -96,6 +96,9 @@ export interface PluginComponentDataProps {
// Query for the current window
query?: string;

// QueryResponse for the current window
queryResponse?: any;

// Variables for the current window
variables?: string;
}
Expand Down

0 comments on commit 3875ffa

Please sign in to comment.