@mintbase-js/data
Advanced tools
Comparing version 0.0.5-sdk-documentation-improvement.1 to 0.0.5-use-owned-nfts-by-stores.0
@@ -16,3 +16,3 @@ "use strict"; | ||
const ownedNftsByStore = (ownerId, contractAddress, pagination) => __awaiter(void 0, void 0, void 0, function* () { | ||
var _a; | ||
var _a, _b; | ||
const wrongParams = typeof (pagination === null || pagination === void 0 ? void 0 : pagination.limit) === 'undefined' || typeof ownerId === 'undefined' || (pagination === null || pagination === void 0 ? void 0 : pagination.limit) < 1; | ||
@@ -26,6 +26,6 @@ if (wrongParams) { | ||
variables: { | ||
ownerId, | ||
contractAddress, | ||
limit: pagination.limit, | ||
offset: (_a = pagination === null || pagination === void 0 ? void 0 : pagination.offset) !== null && _a !== void 0 ? _a : 0, | ||
accountId: ownerId, | ||
contractAddress: contractAddress, | ||
limit: (_a = pagination === null || pagination === void 0 ? void 0 : pagination.limit) !== null && _a !== void 0 ? _a : 12, | ||
offset: (_b = pagination === null || pagination === void 0 ? void 0 : pagination.offset) !== null && _b !== void 0 ? _b : 0, | ||
}, | ||
@@ -32,0 +32,0 @@ }); |
{ | ||
"name": "@mintbase-js/data", | ||
"version": "0.0.5-sdk-documentation-improvement.1", | ||
"version": "0.0.5-use-owned-nfts-by-stores.0", | ||
"description": "Query wrappers for Mintbase JS SDK", | ||
@@ -30,3 +30,3 @@ "main": "lib/index.js", | ||
}, | ||
"gitHead": "f596ca370674e2e1b145f038967d7f2b30c6abf3" | ||
"gitHead": "1e02466b4a4ba48e3a4fd4be1c84f4050fd9b6bd" | ||
} |
@@ -1,8 +0,13 @@ | ||
[//]: # `{ "title": "@mintbase-js/data", "order": 1 }` | ||
[//]: # `{ "title": "@mintbase-js/data", "order": "2" }` | ||
# @mintbase-js/data | ||
Built-in methods to help fetch data from our indexer | ||
Built-in methods to help fetch data from our indexer. | ||
## For now, use our GraphQL schemas | ||
For as long as we have had an indexer, we have relied on GraphQL to provide Mintbase Builders with a flexible and efficient way to query data any way they like. | ||
# methods | ||
| method name | params | description | | ||
@@ -17,14 +22,9 @@ |--|--|--| | ||
## For now, use our GraphQL schemas | ||
For as long as we have had an indexer, we have relied on GraphQL to provide Mintbase Builders with a flexible and efficient way to query data any way they like. | ||
While we will continue to provide public and our new mb_views schema objects, we will also begin to introduce helper methods here that can be used to query data **without having to write any graphql**. | ||
For now, reference our [existing graphql docs](https://docs.mintbase.io/dev/read-data/mintbase-graph) and be sure to check back here soon for updates concerning our [data layer API](src/api/). |
Sorry, the diff of this file is not supported yet
360169