Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace /api/subscriptions/ REST calls with GraphQL queries #1117

Closed
Mark90 opened this issue May 17, 2024 · 0 comments
Closed

Replace /api/subscriptions/ REST calls with GraphQL queries #1117

Mark90 opened this issue May 17, 2024 · 0 comments
Assignees

Comments

@Mark90
Copy link

Mark90 commented May 17, 2024

The formfields use the /api/subscriptions/ endpoint with filters:

        subscriptionsWithFilters: build.query<
            NodeSubscription[],
            { filters: string }
        >({
            query: ({ filters }) => ({
                url: `${SUBSCRIPTIONS}/${filters}`,
                method: 'GET',
                headers: {
                    'Content-Type': 'application/json',
                },
            }),
            extraOptions: {
                baseQueryType: BaseQueryTypes.fetch,
            },
        }),

This endpoint will be removed in orchestrator-core 2.3.0 and should be replaced with a GraphQL query.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants