@svadmin/hasura 0.4.1 → 0.5.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@svadmin/hasura",
3
- "version": "0.4.1",
3
+ "version": "0.5.13",
4
4
  "description": "Hasura GraphQL DataProvider for svadmin",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -16,7 +16,7 @@
16
16
  }
17
17
  },
18
18
  "peerDependencies": {
19
- "@svadmin/core": "^0.4.1"
19
+ "@svadmin/core": "^0.5.0"
20
20
  },
21
21
  "license": "MIT",
22
22
  "repository": {
@@ -145,7 +145,7 @@ export function createHasuraDataProvider(endpoint: string, defaultHeaders: Recor
145
145
  }
146
146
  `;
147
147
  const data = await executeGraphQL(endpoint, query, { ids }, defaultHeaders);
148
- return { data: data[resource] || [] };
148
+ return { data: (data[resource] as T[]) || [] };
149
149
  },
150
150
 
151
151
  async custom<T>({ url, method, payload, headers }: CustomParams): Promise<CustomResult<T>> {