Skip to content

Commit

Permalink
[FEAT]: implement getApiUrl in @refinedev/nestjs-query refinedev#5606
Browse files Browse the repository at this point in the history
changed ,
// getApiUrl: () => {
    //   throw Error("Not implemented on refine-nestjs-query data provider.");
    // },

to

getApiUrl: () => {
    return client.getApiUrl();
},
  • Loading branch information
yess-wee committed Apr 12, 2024
1 parent b4ed3be commit fe7d6f0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/nestjs-query/src/dataProvider/index.ts
Expand Up @@ -415,9 +415,12 @@ const dataProvider = (client: GraphQLClient): Required<DataProvider> => {
data: [],
};
},
// getApiUrl: () => {
// throw Error("Not implemented on refine-nestjs-query data provider.");
// },
getApiUrl: () => {
throw Error("Not implemented on refine-nestjs-query data provider.");
},
return client.getApiUrl();
},
custom: async ({ url, method, headers, meta }) => {
if (url) {
client.setEndpoint(url);
Expand Down

0 comments on commit fe7d6f0

Please sign in to comment.