SPFX @pnp/graph

Copper Contributor

Am trying to use beta endpoint for my graph API request.  I tried setEndpoint, but it run out of error. Could not find the correct way to point to beta instead of v1.0. Am trying to filter teams from the groups, but the filter is not working v1.0 endpoint. Please suggest


      .filter(`resourceProvisioningOptions/Any(x:x eq 'Team')`)
      .then((groups=> {
1 Reply

Hey @Shibu Mathew ,


Yeah, I wan't able to use the filter in graph queries either. I haven't used PnPJS for graph requests so I'm not sure what the problem is. Anyway, I think you can use the concat function to add your filter manually, like .concat(`?$filter=resourceProvisioningOptions/Any(x:x eq 'Team')`). Let me know if it doesn't work for you.