You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 18, 2019. It is now read-only.
Thank you for reporting an issue, suggesting an enhancement, or asking a question. We appreciate your feedback - to help the team understand your needs please complete the below template to ensure we have the details to help. Thanks!
Please check out the Developer Guide to see if your question is already addressed there. This will help us ensure our documentation covers the most frequent questions.
Category
[x ] Enhancement
[ ] Bug
[ ] Question
Version
Hi, I am using this code to return an array of typed objects
public getRoleToTransaction(role: string): Promise {
return sp.web.lists.getByTitle(this.properties.roleToTransactionListName)
.items.filter(Composite_x0020_role eq '${role}').get();
}
I returned results list may be huge in some rare cases so I want to use GetAll():
public getRoleToTransaction(role: string): Promise {
return sp.web.lists.getByTitle(this.properties.roleToTransactionListName)
.items.filter(Composite_x0020_role eq '${role}').getAll();
}
But getAll doesn't take a type parameter.
Can we make getAll take a type parameter?
The text was updated successfully, but these errors were encountered:
Not sure what advantage adding a type parameter would have here?
Thank you for your interest in the sp-pnp-js library. We wanted to mention that this library is being deprecated in July, 2018 in favor of the new scoped pnpjs libraries. You should begin transitioning your existing projects when possible, or start new projects with the new libraries. Please see the transition guide for more details on migrating and be sure to let us know if you have any questions. Thanks!
Thank you for reporting an issue, suggesting an enhancement, or asking a question. We appreciate your feedback - to help the team understand your needs please complete the below template to ensure we have the details to help. Thanks!
Please check out the Developer Guide to see if your question is already addressed there. This will help us ensure our documentation covers the most frequent questions.
Category
[x ] Enhancement
[ ] Bug
[ ] Question
Version
Hi, I am using this code to return an array of typed objects
public getRoleToTransaction(role: string): Promise {
return sp.web.lists.getByTitle(this.properties.roleToTransactionListName)
.items.filter(
Composite_x0020_role eq '${role}'
).get();}
I returned results list may be huge in some rare cases so I want to use GetAll():
public getRoleToTransaction(role: string): Promise {
return sp.web.lists.getByTitle(this.properties.roleToTransactionListName)
.items.filter(
Composite_x0020_role eq '${role}'
).getAll();}
But getAll doesn't take a type parameter.
Can we make getAll take a type parameter?
The text was updated successfully, but these errors were encountered: