Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QueryOptions needs to accommodate following an entity property #48

Open
aappddeevv opened this issue Oct 13, 2017 · 0 comments
Open

QueryOptions needs to accommodate following an entity property #48

aappddeevv opened this issue Oct 13, 2017 · 0 comments

Comments

@aappddeevv
Copy link

aappddeevv commented Oct 13, 2017

If I want to follow a property from an entity you need to add something Path to the QueryOptions:

..._BuildQueryURL...
     const path = (queryOptions && queryOptions.Path) ? 
                     queryOptions.Path.map(part => 
                         typeof part === 'string' ?
                                                 `/${part}` :
                                                 `/${part.Name}` + (part.Type ? `/${part.Type}` : "")
                     ): []
        let fullurl = config.APIUrl + uri + (path.length > 0 ? path.join("/"):"")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant