Pnpjs: Graph skip property isn't working on a GraphQueryableCollection

Created on 1 Nov 2018  路  2Comments  路  Source: pnp/pnpjs

Category

  • [ ] Enhancement
  • [ x] Bug
  • [ ] Question
  • [ ] Documentation gap/issue

Version

Please specify what version of the library you are using: [ 1.2.3 ]

Please specify what version(s) of SharePoint you are targeting: [ SPO ]

Expected / Desired Behavior / Question

When specified as followed, I expect the "skip" parameter to get added to the query.

let view = new GraphQueryableCollection(graph.me, "people");
view = view.skip(12)

Observed Behavior

The skip parameter was not added. The following code works perfectly though:

let view = new GraphQueryableCollection(graph.me, "people");
view.query.set("skip", "12")

Steps to Reproduce

Add the code above 馃憤

code in progress bug

All 2 comments

Amazed this wasn't found earlier. Copy/paste bug as we didn't update skip method to add skip rather it adds "top". Fixing.

Fixed in #333.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

simkessy picture simkessy  路  3Comments

simonagren picture simonagren  路  3Comments

AJIXuMuK picture AJIXuMuK  路  3Comments

ahsanranjha picture ahsanranjha  路  3Comments

Holden15 picture Holden15  路  3Comments