.png)
Use of the data provider
// group-generators/helpers/data-providers/index.ts
...
import tutorialLensProviderSchema from "./tutorial-lens/interface-schema.json";
export const dataProvidersInterfacesSchemas = [
...
tutorialLensProviderSchema,
];
You're almost finished! 😉
As you may have noticed, in the `interface-schema.json` there is a `countFunctionName.` This is called a count function. Count functions allow the Factory to know how many accounts a request will fetch and thus to know if the data that the user wants to fetch exists.
Let's create it:
```typescript
// group-generators/helpers/data-providers/tutorial-lens/index.ts
...
public async getPublicationCollectorsCount(
publication: PublicationId
): Promise.png)
Data Provider selection

Run the count function

Fork Sismo Hub repository

Click on "Compare & pull request" to begin creating your PR

Create your pull request