janhommes / o.js

o.js - client side oData lib.
https://janhommes.github.io/o.js/example/
MIT License
241 stars 58 forks source link

Make multiple expands possible #5

Closed heinzchr closed 9 years ago

heinzchr commented 9 years ago

o("Product").expand(["Address","MainIMage_fk"]).get()

heinzchr commented 9 years ago

Sorry, this works with the following syntax: o("Product").expand("Address, MainIMage_fk").get() But the syntax should be the same as in the route concatenation...

janhommes commented 9 years ago

You can aslo use o('Product').expand('ProductUnit').expand('ProductImage')