Skip to content

Commit 0305da1

Browse files
committed
update api to v1
1 parent b70fe23 commit 0305da1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/data-connect/data-connect-api-client-internal.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import * as utils from '../utils/index';
2525
import * as validator from '../utils/validator';
2626
import { ConnectorConfig, ExecuteGraphqlResponse, GraphqlOptions } from './data-connect-api';
2727

28-
const API_VERSION = 'v1alpha';
28+
const API_VERSION = 'v1';
2929

3030
/** The Firebase Data Connect backend base URL format. */
3131
const FIREBASE_DATA_CONNECT_BASE_URL_FORMAT =

test/unit/data-connect/data-connect-api-client-internal.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ describe('DataConnectApiClient', () => {
207207
expect(resp.data.users).to.deep.equal(TEST_RESPONSE.data.users);
208208
expect(stub).to.have.been.calledOnce.and.calledWith({
209209
method: 'POST',
210-
url: `https://firebasedataconnect.googleapis.com/v1alpha/projects/test-project/locations/${connectorConfig.location}/services/${connectorConfig.serviceId}:executeGraphql`,
210+
url: `https://firebasedataconnect.googleapis.com/v1/projects/test-project/locations/${connectorConfig.location}/services/${connectorConfig.serviceId}:executeGraphql`,
211211
headers: EXPECTED_HEADERS,
212212
data: { query: 'query' }
213213
});
@@ -223,7 +223,7 @@ describe('DataConnectApiClient', () => {
223223
.then(() => {
224224
expect(stub).to.have.been.calledOnce.and.calledWith({
225225
method: 'POST',
226-
url: `http://localhost:9399/v1alpha/projects/test-project/locations/${connectorConfig.location}/services/${connectorConfig.serviceId}:executeGraphql`,
226+
url: `http://localhost:9399/v1/projects/test-project/locations/${connectorConfig.location}/services/${connectorConfig.serviceId}:executeGraphql`,
227227
headers: EMULATOR_EXPECTED_HEADERS,
228228
data: { query: 'query' }
229229
});

0 commit comments

Comments
 (0)