import { items } from '@wix/data'; import { createClient, OAuthStrategy } from '@wix/sdk'; //To access the Wix APIs, create a client with the createClient() function imported from the @wix/sdk package. const myWixClient = createClient({ modules: { items }, auth: OAuthStrategy({ clientId: 'd4f33642-6fa2-4e2f-a893-19cc65b4b73a' }), }); const dataItemsList = await myWixClient.items.query('').find(); console.log('My Data Items:'); console.log('Total: ', dataItemsList.items.length); console.log(dataItemsList.items .map((item) => item.data._id) .join('\n') );
top of page
bottom of page