[nodejs 工具包] express-partial-response 来处理 API 设计里面的 fields query-string.

402 阅读25分钟

Express middleware for filtering-out parts of JSON responses based on the fields query-string.

This Express Middleware will allow you to send a subset of a JSON object instead of an entire object from your HTTP services. To do so, your services will begin accepting the ?fields= query-string that, using a simple language, will specify which fields and sub-feelds to keep and which to ignore.

If you've used the Google APIs, provided a ?fields= query-string to get a Partial Response, and wanted to do the same for your own server, now you can do so with this middleware.

Underneath, this middleware uses json-mask[1]. Use it directly without this middleware if you need more flexibility.

Installation

npm install express-partial-response

Usage

 express requireexpress
 partialResponse requireexpress-partial-response
 express
partialResponse
function
      firstNameMohandas
 lastNameGandhi
 aliases
          firstNameMahatma
 lastNameGandhi
          firstName
listen

Let's test it:

__JJ_LT_JJ__pre__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__
$ curl 'http://localhost:4000
{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}
$ # Let's just get the first name
$ curl 'http://localhost:4000?fields=lastName
{"lastName":"Gandhi"}
$ # Now, let's just get the first names directly as well as from aliases
$ curl 'http://localhost:4000?fields=firstName,aliases(firstName)'
{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}
nbsp;curl 'http://localhost:4000__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__
$ curl 'http://localhost:4000
{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}
$ # Let's just get the first name
$ curl 'http://localhost:4000?fields=lastName
{"lastName":"Gandhi"}
$ # Now, let's just get the first names directly as well as from aliases
$ curl 'http://localhost:4000?fields=firstName,aliases(firstName)'
{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}
nbsp;# Let's just get the first name__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__
$ curl 'http://localhost:4000
{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}
$ # Let's just get the first name
$ curl 'http://localhost:4000?fields=lastName
{"lastName":"Gandhi"}
$ # Now, let's just get the first names directly as well as from aliases
$ curl 'http://localhost:4000?fields=firstName,aliases(firstName)'
{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}
nbsp;curl 'http://localhost:4000?fields=lastName__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__{"lastName":"Gandhi"}__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__
$ curl 'http://localhost:4000
{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}
$ # Let's just get the first name
$ curl 'http://localhost:4000?fields=lastName
{"lastName":"Gandhi"}
$ # Now, let's just get the first names directly as well as from aliases
$ curl 'http://localhost:4000?fields=firstName,aliases(firstName)'
{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}
nbsp;# Now, let's just get the first names directly as well as from aliases__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__
$ curl 'http://localhost:4000
{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}
$ # Let's just get the first name
$ curl 'http://localhost:4000?fields=lastName
{"lastName":"Gandhi"}
$ # Now, let's just get the first names directly as well as from aliases
$ curl 'http://localhost:4000?fields=firstName,aliases(firstName)'
{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}
nbsp;curl 'http://localhost:4000?fields=firstName,aliases(firstName)'__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__/pre__JJ_GT_JJ__nbsp;curl 'http://localhost:4000
{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}
__JJ_LT_JJ__pre__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__
$ curl 'http://localhost:4000
{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}
$ # Let's just get the first name
$ curl 'http://localhost:4000?fields=lastName
{"lastName":"Gandhi"}
$ # Now, let's just get the first names directly as well as from aliases
$ curl 'http://localhost:4000?fields=firstName,aliases(firstName)'
{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}
nbsp;curl 'http://localhost:4000__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__
$ curl 'http://localhost:4000
{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}
$ # Let's just get the first name
$ curl 'http://localhost:4000?fields=lastName
{"lastName":"Gandhi"}
$ # Now, let's just get the first names directly as well as from aliases
$ curl 'http://localhost:4000?fields=firstName,aliases(firstName)'
{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}
nbsp;# Let's just get the first name__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__
$ curl 'http://localhost:4000
{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}
$ # Let's just get the first name
$ curl 'http://localhost:4000?fields=lastName
{"lastName":"Gandhi"}
$ # Now, let's just get the first names directly as well as from aliases
$ curl 'http://localhost:4000?fields=firstName,aliases(firstName)'
{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}
nbsp;curl 'http://localhost:4000?fields=lastName__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__{"lastName":"Gandhi"}__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__
$ curl 'http://localhost:4000
{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}
$ # Let's just get the first name
$ curl 'http://localhost:4000?fields=lastName
{"lastName":"Gandhi"}
$ # Now, let's just get the first names directly as well as from aliases
$ curl 'http://localhost:4000?fields=firstName,aliases(firstName)'
{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}
nbsp;# Now, let's just get the first names directly as well as from aliases__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__
$ curl 'http://localhost:4000
{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}
$ # Let's just get the first name
$ curl 'http://localhost:4000?fields=lastName
{"lastName":"Gandhi"}
$ # Now, let's just get the first names directly as well as from aliases
$ curl 'http://localhost:4000?fields=firstName,aliases(firstName)'
{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}
nbsp;curl 'http://localhost:4000?fields=firstName,aliases(firstName)'__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__/pre__JJ_GT_JJ__nbsp;# Let's just get the first name
__JJ_LT_JJ__pre__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__
$ curl 'http://localhost:4000
{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}
$ # Let's just get the first name
$ curl 'http://localhost:4000?fields=lastName
{"lastName":"Gandhi"}
$ # Now, let's just get the first names directly as well as from aliases
$ curl 'http://localhost:4000?fields=firstName,aliases(firstName)'
{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}
nbsp;curl 'http://localhost:4000__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__
$ curl 'http://localhost:4000
{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}
$ # Let's just get the first name
$ curl 'http://localhost:4000?fields=lastName
{"lastName":"Gandhi"}
$ # Now, let's just get the first names directly as well as from aliases
$ curl 'http://localhost:4000?fields=firstName,aliases(firstName)'
{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}
nbsp;# Let's just get the first name__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__
$ curl 'http://localhost:4000
{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}
$ # Let's just get the first name
$ curl 'http://localhost:4000?fields=lastName
{"lastName":"Gandhi"}
$ # Now, let's just get the first names directly as well as from aliases
$ curl 'http://localhost:4000?fields=firstName,aliases(firstName)'
{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}
nbsp;curl 'http://localhost:4000?fields=lastName__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__{"lastName":"Gandhi"}__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__
$ curl 'http://localhost:4000
{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}
$ # Let's just get the first name
$ curl 'http://localhost:4000?fields=lastName
{"lastName":"Gandhi"}
$ # Now, let's just get the first names directly as well as from aliases
$ curl 'http://localhost:4000?fields=firstName,aliases(firstName)'
{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}
nbsp;# Now, let's just get the first names directly as well as from aliases__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__
$ curl 'http://localhost:4000
{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}
$ # Let's just get the first name
$ curl 'http://localhost:4000?fields=lastName
{"lastName":"Gandhi"}
$ # Now, let's just get the first names directly as well as from aliases
$ curl 'http://localhost:4000?fields=firstName,aliases(firstName)'
{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}
nbsp;curl 'http://localhost:4000?fields=firstName,aliases(firstName)'__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__/pre__JJ_GT_JJ__nbsp;curl 'http://localhost:4000?fields=lastName
{"lastName":"Gandhi"}
__JJ_LT_JJ__pre__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__
$ curl 'http://localhost:4000
{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}
$ # Let's just get the first name
$ curl 'http://localhost:4000?fields=lastName
{"lastName":"Gandhi"}
$ # Now, let's just get the first names directly as well as from aliases
$ curl 'http://localhost:4000?fields=firstName,aliases(firstName)'
{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}
nbsp;curl 'http://localhost:4000__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__
$ curl 'http://localhost:4000
{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}
$ # Let's just get the first name
$ curl 'http://localhost:4000?fields=lastName
{"lastName":"Gandhi"}
$ # Now, let's just get the first names directly as well as from aliases
$ curl 'http://localhost:4000?fields=firstName,aliases(firstName)'
{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}
nbsp;# Let's just get the first name__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__
$ curl 'http://localhost:4000
{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}
$ # Let's just get the first name
$ curl 'http://localhost:4000?fields=lastName
{"lastName":"Gandhi"}
$ # Now, let's just get the first names directly as well as from aliases
$ curl 'http://localhost:4000?fields=firstName,aliases(firstName)'
{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}
nbsp;curl 'http://localhost:4000?fields=lastName__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__{"lastName":"Gandhi"}__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__
$ curl 'http://localhost:4000
{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}
$ # Let's just get the first name
$ curl 'http://localhost:4000?fields=lastName
{"lastName":"Gandhi"}
$ # Now, let's just get the first names directly as well as from aliases
$ curl 'http://localhost:4000?fields=firstName,aliases(firstName)'
{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}
nbsp;# Now, let's just get the first names directly as well as from aliases__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__
$ curl 'http://localhost:4000
{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}
$ # Let's just get the first name
$ curl 'http://localhost:4000?fields=lastName
{"lastName":"Gandhi"}
$ # Now, let's just get the first names directly as well as from aliases
$ curl 'http://localhost:4000?fields=firstName,aliases(firstName)'
{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}
nbsp;curl 'http://localhost:4000?fields=firstName,aliases(firstName)'__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__/pre__JJ_GT_JJ__nbsp;# Now, let's just get the first names directly as well as from aliases
__JJ_LT_JJ__pre__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__
$ curl 'http://localhost:4000
{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}
$ # Let's just get the first name
$ curl 'http://localhost:4000?fields=lastName
{"lastName":"Gandhi"}
$ # Now, let's just get the first names directly as well as from aliases
$ curl 'http://localhost:4000?fields=firstName,aliases(firstName)'
{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}
nbsp;curl 'http://localhost:4000__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__
$ curl 'http://localhost:4000
{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}
$ # Let's just get the first name
$ curl 'http://localhost:4000?fields=lastName
{"lastName":"Gandhi"}
$ # Now, let's just get the first names directly as well as from aliases
$ curl 'http://localhost:4000?fields=firstName,aliases(firstName)'
{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}
nbsp;# Let's just get the first name__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__
$ curl 'http://localhost:4000
{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}
$ # Let's just get the first name
$ curl 'http://localhost:4000?fields=lastName
{"lastName":"Gandhi"}
$ # Now, let's just get the first names directly as well as from aliases
$ curl 'http://localhost:4000?fields=firstName,aliases(firstName)'
{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}
nbsp;curl 'http://localhost:4000?fields=lastName__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__{"lastName":"Gandhi"}__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__
$ curl 'http://localhost:4000
{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}
$ # Let's just get the first name
$ curl 'http://localhost:4000?fields=lastName
{"lastName":"Gandhi"}
$ # Now, let's just get the first names directly as well as from aliases
$ curl 'http://localhost:4000?fields=firstName,aliases(firstName)'
{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}
nbsp;# Now, let's just get the first names directly as well as from aliases__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__
$ curl 'http://localhost:4000
{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}
$ # Let's just get the first name
$ curl 'http://localhost:4000?fields=lastName
{"lastName":"Gandhi"}
$ # Now, let's just get the first names directly as well as from aliases
$ curl 'http://localhost:4000?fields=firstName,aliases(firstName)'
{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}
nbsp;curl 'http://localhost:4000?fields=firstName,aliases(firstName)'__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__/pre__JJ_GT_JJ__nbsp;curl 'http://localhost:4000?fields=firstName,aliases(firstName)'
{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}
nbsp;curl 'http://localhost:4000
{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}
__JJ_LT_JJ__pre__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__
$ curl 'http://localhost:4000
{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}
$ # Let's just get the first name
$ curl 'http://localhost:4000?fields=lastName
{"lastName":"Gandhi"}
$ # Now, let's just get the first names directly as well as from aliases
$ curl 'http://localhost:4000?fields=firstName,aliases(firstName)'
{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}
nbsp;curl 'http://localhost:4000__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__
$ curl 'http://localhost:4000
{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}
$ # Let's just get the first name
$ curl 'http://localhost:4000?fields=lastName
{"lastName":"Gandhi"}
$ # Now, let's just get the first names directly as well as from aliases
$ curl 'http://localhost:4000?fields=firstName,aliases(firstName)'
{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}
nbsp;# Let's just get the first name__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__
$ curl 'http://localhost:4000
{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}
$ # Let's just get the first name
$ curl 'http://localhost:4000?fields=lastName
{"lastName":"Gandhi"}
$ # Now, let's just get the first names directly as well as from aliases
$ curl 'http://localhost:4000?fields=firstName,aliases(firstName)'
{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}
nbsp;curl 'http://localhost:4000?fields=lastName__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__{"lastName":"Gandhi"}__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__
$ curl 'http://localhost:4000
{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}
$ # Let's just get the first name
$ curl 'http://localhost:4000?fields=lastName
{"lastName":"Gandhi"}
$ # Now, let's just get the first names directly as well as from aliases
$ curl 'http://localhost:4000?fields=firstName,aliases(firstName)'
{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}
nbsp;# Now, let's just get the first names directly as well as from aliases__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__
$ curl 'http://localhost:4000
{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}
$ # Let's just get the first name
$ curl 'http://localhost:4000?fields=lastName
{"lastName":"Gandhi"}
$ # Now, let's just get the first names directly as well as from aliases
$ curl 'http://localhost:4000?fields=firstName,aliases(firstName)'
{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}
nbsp;curl 'http://localhost:4000?fields=firstName,aliases(firstName)'__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__/pre__JJ_GT_JJ__nbsp;curl 'http://localhost:4000
{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}
__JJ_LT_JJ__pre__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__
$ curl 'http://localhost:4000
{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}
$ # Let's just get the first name
$ curl 'http://localhost:4000?fields=lastName
{"lastName":"Gandhi"}
$ # Now, let's just get the first names directly as well as from aliases
$ curl 'http://localhost:4000?fields=firstName,aliases(firstName)'
{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}
nbsp;curl 'http://localhost:4000__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__
$ curl 'http://localhost:4000
{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}
$ # Let's just get the first name
$ curl 'http://localhost:4000?fields=lastName
{"lastName":"Gandhi"}
$ # Now, let's just get the first names directly as well as from aliases
$ curl 'http://localhost:4000?fields=firstName,aliases(firstName)'
{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}
nbsp;# Let's just get the first name__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__
$ curl 'http://localhost:4000
{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}
$ # Let's just get the first name
$ curl 'http://localhost:4000?fields=lastName
{"lastName":"Gandhi"}
$ # Now, let's just get the first names directly as well as from aliases
$ curl 'http://localhost:4000?fields=firstName,aliases(firstName)'
{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}
nbsp;curl 'http://localhost:4000?fields=lastName__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__{"lastName":"Gandhi"}__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__
$ curl 'http://localhost:4000
{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}
$ # Let's just get the first name
$ curl 'http://localhost:4000?fields=lastName
{"lastName":"Gandhi"}
$ # Now, let's just get the first names directly as well as from aliases
$ curl 'http://localhost:4000?fields=firstName,aliases(firstName)'
{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}
nbsp;# Now, let's just get the first names directly as well as from aliases__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__
$ curl 'http://localhost:4000
{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}
$ # Let's just get the first name
$ curl 'http://localhost:4000?fields=lastName
{"lastName":"Gandhi"}
$ # Now, let's just get the first names directly as well as from aliases
$ curl 'http://localhost:4000?fields=firstName,aliases(firstName)'
{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}
nbsp;curl 'http://localhost:4000?fields=firstName,aliases(firstName)'__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__/pre__JJ_GT_JJ__nbsp;# Let's just get the first name
__JJ_LT_JJ__pre__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__
$ curl 'http://localhost:4000
{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}
$ # Let's just get the first name
$ curl 'http://localhost:4000?fields=lastName
{"lastName":"Gandhi"}
$ # Now, let's just get the first names directly as well as from aliases
$ curl 'http://localhost:4000?fields=firstName,aliases(firstName)'
{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}
nbsp;curl 'http://localhost:4000__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__
$ curl 'http://localhost:4000
{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}
$ # Let's just get the first name
$ curl 'http://localhost:4000?fields=lastName
{"lastName":"Gandhi"}
$ # Now, let's just get the first names directly as well as from aliases
$ curl 'http://localhost:4000?fields=firstName,aliases(firstName)'
{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}
nbsp;# Let's just get the first name__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__
$ curl 'http://localhost:4000
{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}
$ # Let's just get the first name
$ curl 'http://localhost:4000?fields=lastName
{"lastName":"Gandhi"}
$ # Now, let's just get the first names directly as well as from aliases
$ curl 'http://localhost:4000?fields=firstName,aliases(firstName)'
{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}
nbsp;curl 'http://localhost:4000?fields=lastName__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__{"lastName":"Gandhi"}__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__
$ curl 'http://localhost:4000
{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}
$ # Let's just get the first name
$ curl 'http://localhost:4000?fields=lastName
{"lastName":"Gandhi"}
$ # Now, let's just get the first names directly as well as from aliases
$ curl 'http://localhost:4000?fields=firstName,aliases(firstName)'
{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}
nbsp;# Now, let's just get the first names directly as well as from aliases__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__
$ curl 'http://localhost:4000
{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}
$ # Let's just get the first name
$ curl 'http://localhost:4000?fields=lastName
{"lastName":"Gandhi"}
$ # Now, let's just get the first names directly as well as from aliases
$ curl 'http://localhost:4000?fields=firstName,aliases(firstName)'
{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}
nbsp;curl 'http://localhost:4000?fields=firstName,aliases(firstName)'__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__/pre__JJ_GT_JJ__nbsp;curl 'http://localhost:4000?fields=lastName
{"lastName":"Gandhi"}
__JJ_LT_JJ__pre__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__
$ curl 'http://localhost:4000
{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}
$ # Let's just get the first name
$ curl 'http://localhost:4000?fields=lastName
{"lastName":"Gandhi"}
$ # Now, let's just get the first names directly as well as from aliases
$ curl 'http://localhost:4000?fields=firstName,aliases(firstName)'
{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}
nbsp;curl 'http://localhost:4000__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__
$ curl 'http://localhost:4000
{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}
$ # Let's just get the first name
$ curl 'http://localhost:4000?fields=lastName
{"lastName":"Gandhi"}
$ # Now, let's just get the first names directly as well as from aliases
$ curl 'http://localhost:4000?fields=firstName,aliases(firstName)'
{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}
nbsp;# Let's just get the first name__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__
$ curl 'http://localhost:4000
{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}
$ # Let's just get the first name
$ curl 'http://localhost:4000?fields=lastName
{"lastName":"Gandhi"}
$ # Now, let's just get the first names directly as well as from aliases
$ curl 'http://localhost:4000?fields=firstName,aliases(firstName)'
{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}
nbsp;curl 'http://localhost:4000?fields=lastName__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__{"lastName":"Gandhi"}__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__
$ curl 'http://localhost:4000
{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}
$ # Let's just get the first name
$ curl 'http://localhost:4000?fields=lastName
{"lastName":"Gandhi"}
$ # Now, let's just get the first names directly as well as from aliases
$ curl 'http://localhost:4000?fields=firstName,aliases(firstName)'
{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}
nbsp;# Now, let's just get the first names directly as well as from aliases__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__
$ curl 'http://localhost:4000
{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}
$ # Let's just get the first name
$ curl 'http://localhost:4000?fields=lastName
{"lastName":"Gandhi"}
$ # Now, let's just get the first names directly as well as from aliases
$ curl 'http://localhost:4000?fields=firstName,aliases(firstName)'
{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}
nbsp;curl 'http://localhost:4000?fields=firstName,aliases(firstName)'__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__/pre__JJ_GT_JJ__nbsp;# Now, let's just get the first names directly as well as from aliases
__JJ_LT_JJ__pre__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__
$ curl 'http://localhost:4000
{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}
$ # Let's just get the first name
$ curl 'http://localhost:4000?fields=lastName
{"lastName":"Gandhi"}
$ # Now, let's just get the first names directly as well as from aliases
$ curl 'http://localhost:4000?fields=firstName,aliases(firstName)'
{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}
nbsp;curl 'http://localhost:4000__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__
$ curl 'http://localhost:4000
{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}
$ # Let's just get the first name
$ curl 'http://localhost:4000?fields=lastName
{"lastName":"Gandhi"}
$ # Now, let's just get the first names directly as well as from aliases
$ curl 'http://localhost:4000?fields=firstName,aliases(firstName)'
{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}
nbsp;# Let's just get the first name__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__
$ curl 'http://localhost:4000
{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}
$ # Let's just get the first name
$ curl 'http://localhost:4000?fields=lastName
{"lastName":"Gandhi"}
$ # Now, let's just get the first names directly as well as from aliases
$ curl 'http://localhost:4000?fields=firstName,aliases(firstName)'
{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}
nbsp;curl 'http://localhost:4000?fields=lastName__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__{"lastName":"Gandhi"}__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__
$ curl 'http://localhost:4000
{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}
$ # Let's just get the first name
$ curl 'http://localhost:4000?fields=lastName
{"lastName":"Gandhi"}
$ # Now, let's just get the first names directly as well as from aliases
$ curl 'http://localhost:4000?fields=firstName,aliases(firstName)'
{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}
nbsp;# Now, let's just get the first names directly as well as from aliases__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__
$ curl 'http://localhost:4000
{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}
$ # Let's just get the first name
$ curl 'http://localhost:4000?fields=lastName
{"lastName":"Gandhi"}
$ # Now, let's just get the first names directly as well as from aliases
$ curl 'http://localhost:4000?fields=firstName,aliases(firstName)'
{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}
nbsp;curl 'http://localhost:4000?fields=firstName,aliases(firstName)'__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__/pre__JJ_GT_JJ__nbsp;curl 'http://localhost:4000?fields=firstName,aliases(firstName)'
{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}
nbsp;# Let's just get the first name
__JJ_LT_JJ__pre__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__
$ curl 'http://localhost:4000
{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}
$ # Let's just get the first name
$ curl 'http://localhost:4000?fields=lastName
{"lastName":"Gandhi"}
$ # Now, let's just get the first names directly as well as from aliases
$ curl 'http://localhost:4000?fields=firstName,aliases(firstName)'
{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}
nbsp;curl 'http://localhost:4000__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__
$ curl 'http://localhost:4000
{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}
$ # Let's just get the first name
$ curl 'http://localhost:4000?fields=lastName
{"lastName":"Gandhi"}
$ # Now, let's just get the first names directly as well as from aliases
$ curl 'http://localhost:4000?fields=firstName,aliases(firstName)'
{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}
nbsp;# Let's just get the first name__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__
$ curl 'http://localhost:4000
{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}
$ # Let's just get the first name
$ curl 'http://localhost:4000?fields=lastName
{"lastName":"Gandhi"}
$ # Now, let's just get the first names directly as well as from aliases
$ curl 'http://localhost:4000?fields=firstName,aliases(firstName)'
{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}
nbsp;curl 'http://localhost:4000?fields=lastName__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__{"lastName":"Gandhi"}__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__
$ curl 'http://localhost:4000
{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}
$ # Let's just get the first name
$ curl 'http://localhost:4000?fields=lastName
{"lastName":"Gandhi"}
$ # Now, let's just get the first names directly as well as from aliases
$ curl 'http://localhost:4000?fields=firstName,aliases(firstName)'
{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}
nbsp;# Now, let's just get the first names directly as well as from aliases__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__
$ curl 'http://localhost:4000
{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}
$ # Let's just get the first name
$ curl 'http://localhost:4000?fields=lastName
{"lastName":"Gandhi"}
$ # Now, let's just get the first names directly as well as from aliases
$ curl 'http://localhost:4000?fields=firstName,aliases(firstName)'
{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}
nbsp;curl 'http://localhost:4000?fields=firstName,aliases(firstName)'__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__/pre__JJ_GT_JJ__nbsp;curl 'http://localhost:4000
{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}
__JJ_LT_JJ__pre__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__
$ curl 'http://localhost:4000
{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}
$ # Let's just get the first name
$ curl 'http://localhost:4000?fields=lastName
{"lastName":"Gandhi"}
$ # Now, let's just get the first names directly as well as from aliases
$ curl 'http://localhost:4000?fields=firstName,aliases(firstName)'
{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}
nbsp;curl 'http://localhost:4000__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__
$ curl 'http://localhost:4000
{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}
$ # Let's just get the first name
$ curl 'http://localhost:4000?fields=lastName
{"lastName":"Gandhi"}
$ # Now, let's just get the first names directly as well as from aliases
$ curl 'http://localhost:4000?fields=firstName,aliases(firstName)'
{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}
nbsp;# Let's just get the first name__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__
$ curl 'http://localhost:4000
{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}
$ # Let's just get the first name
$ curl 'http://localhost:4000?fields=lastName
{"lastName":"Gandhi"}
$ # Now, let's just get the first names directly as well as from aliases
$ curl 'http://localhost:4000?fields=firstName,aliases(firstName)'
{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}
nbsp;curl 'http://localhost:4000?fields=lastName__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__{"lastName":"Gandhi"}__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__
$ curl 'http://localhost:4000
{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}
$ # Let's just get the first name
$ curl 'http://localhost:4000?fields=lastName
{"lastName":"Gandhi"}
$ # Now, let's just get the first names directly as well as from aliases
$ curl 'http://localhost:4000?fields=firstName,aliases(firstName)'
{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}
nbsp;# Now, let's just get the first names directly as well as from aliases__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__
$ curl 'http://localhost:4000
{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}
$ # Let's just get the first name
$ curl 'http://localhost:4000?fields=lastName
{"lastName":"Gandhi"}
$ # Now, let's just get the first names directly as well as from aliases
$ curl 'http://localhost:4000?fields=firstName,aliases(firstName)'
{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}
nbsp;curl 'http://localhost:4000?fields=firstName,aliases(firstName)'__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__/pre__JJ_GT_JJ__nbsp;# Let's just get the first name
__JJ_LT_JJ__pre__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__
$ curl 'http://localhost:4000
{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}
$ # Let's just get the first name
$ curl 'http://localhost:4000?fields=lastName
{"lastName":"Gandhi"}
$ # Now, let's just get the first names directly as well as from aliases
$ curl 'http://localhost:4000?fields=firstName,aliases(firstName)'
{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}
nbsp;curl 'http://localhost:4000__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__
$ curl 'http://localhost:4000
{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}
$ # Let's just get the first name
$ curl 'http://localhost:4000?fields=lastName
{"lastName":"Gandhi"}
$ # Now, let's just get the first names directly as well as from aliases
$ curl 'http://localhost:4000?fields=firstName,aliases(firstName)'
{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}
nbsp;# Let's just get the first name__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__
$ curl 'http://localhost:4000
{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}
$ # Let's just get the first name
$ curl 'http://localhost:4000?fields=lastName
{"lastName":"Gandhi"}
$ # Now, let's just get the first names directly as well as from aliases
$ curl 'http://localhost:4000?fields=firstName,aliases(firstName)'
{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}
nbsp;curl 'http://localhost:4000?fields=lastName__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__{"lastName":"Gandhi"}__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__
$ curl 'http://localhost:4000
{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}
$ # Let's just get the first name
$ curl 'http://localhost:4000?fields=lastName
{"lastName":"Gandhi"}
$ # Now, let's just get the first names directly as well as from aliases
$ curl 'http://localhost:4000?fields=firstName,aliases(firstName)'
{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}
nbsp;# Now, let's just get the first names directly as well as from aliases__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__
$ curl 'http://localhost:4000
{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}
$ # Let's just get the first name
$ curl 'http://localhost:4000?fields=lastName
{"lastName":"Gandhi"}
$ # Now, let's just get the first names directly as well as from aliases
$ curl 'http://localhost:4000?fields=firstName,aliases(firstName)'
{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}
nbsp;curl 'http://localhost:4000?fields=firstName,aliases(firstName)'__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__/pre__JJ_GT_JJ__nbsp;curl 'http://localhost:4000?fields=lastName
{"lastName":"Gandhi"}
__JJ_LT_JJ__pre__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__
$ curl 'http://localhost:4000
{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}
$ # Let's just get the first name
$ curl 'http://localhost:4000?fields=lastName
{"lastName":"Gandhi"}
$ # Now, let's just get the first names directly as well as from aliases
$ curl 'http://localhost:4000?fields=firstName,aliases(firstName)'
{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}
nbsp;curl 'http://localhost:4000__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__
$ curl 'http://localhost:4000
{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}
$ # Let's just get the first name
$ curl 'http://localhost:4000?fields=lastName
{"lastName":"Gandhi"}
$ # Now, let's just get the first names directly as well as from aliases
$ curl 'http://localhost:4000?fields=firstName,aliases(firstName)'
{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}
nbsp;# Let's just get the first name__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__
$ curl 'http://localhost:4000
{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}
$ # Let's just get the first name
$ curl 'http://localhost:4000?fields=lastName
{"lastName":"Gandhi"}
$ # Now, let's just get the first names directly as well as from aliases
$ curl 'http://localhost:4000?fields=firstName,aliases(firstName)'
{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}
nbsp;curl 'http://localhost:4000?fields=lastName__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__{"lastName":"Gandhi"}__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__
$ curl 'http://localhost:4000
{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}
$ # Let's just get the first name
$ curl 'http://localhost:4000?fields=lastName
{"lastName":"Gandhi"}
$ # Now, let's just get the first names directly as well as from aliases
$ curl 'http://localhost:4000?fields=firstName,aliases(firstName)'
{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}
nbsp;# Now, let's just get the first names directly as well as from aliases__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__
$ curl 'http://localhost:4000
{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}
$ # Let's just get the first name
$ curl 'http://localhost:4000?fields=lastName
{"lastName":"Gandhi"}
$ # Now, let's just get the first names directly as well as from aliases
$ curl 'http://localhost:4000?fields=firstName,aliases(firstName)'
{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}
nbsp;curl 'http://localhost:4000?fields=firstName,aliases(firstName)'__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__/pre__JJ_GT_JJ__nbsp;# Now, let's just get the first names directly as well as from aliases
__JJ_LT_JJ__pre__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__
$ curl 'http://localhost:4000
{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}
$ # Let's just get the first name
$ curl 'http://localhost:4000?fields=lastName
{"lastName":"Gandhi"}
$ # Now, let's just get the first names directly as well as from aliases
$ curl 'http://localhost:4000?fields=firstName,aliases(firstName)'
{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}
nbsp;curl 'http://localhost:4000__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__
$ curl 'http://localhost:4000
{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}
$ # Let's just get the first name
$ curl 'http://localhost:4000?fields=lastName
{"lastName":"Gandhi"}
$ # Now, let's just get the first names directly as well as from aliases
$ curl 'http://localhost:4000?fields=firstName,aliases(firstName)'
{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}
nbsp;# Let's just get the first name__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__
$ curl 'http://localhost:4000
{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}
$ # Let's just get the first name
$ curl 'http://localhost:4000?fields=lastName
{"lastName":"Gandhi"}
$ # Now, let's just get the first names directly as well as from aliases
$ curl 'http://localhost:4000?fields=firstName,aliases(firstName)'
{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}
nbsp;curl 'http://localhost:4000?fields=lastName__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__{"lastName":"Gandhi"}__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__
$ curl 'http://localhost:4000
{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}
$ # Let's just get the first name
$ curl 'http://localhost:4000?fields=lastName
{"lastName":"Gandhi"}
$ # Now, let's just get the first names directly as well as from aliases
$ curl 'http://localhost:4000?fields=firstName,aliases(firstName)'
{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}
nbsp;# Now, let's just get the first names directly as well as from aliases__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__
$ curl 'http://localhost:4000
{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}
$ # Let's just get the first name
$ curl 'http://localhost:4000?fields=lastName
{"lastName":"Gandhi"}
$ # Now, let's just get the first names directly as well as from aliases
$ curl 'http://localhost:4000?fields=firstName,aliases(firstName)'
{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}
nbsp;curl 'http://localhost:4000?fields=firstName,aliases(firstName)'__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__/pre__JJ_GT_JJ__nbsp;curl 'http://localhost:4000?fields=firstName,aliases(firstName)'
{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}
nbsp;curl 'http://localhost:4000?fields=lastName
{"lastName":"Gandhi"}
__JJ_LT_JJ__pre__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__
$ curl 'http://localhost:4000
{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}
$ # Let's just get the first name
$ curl 'http://localhost:4000?fields=lastName
{"lastName":"Gandhi"}
$ # Now, let's just get the first names directly as well as from aliases
$ curl 'http://localhost:4000?fields=firstName,aliases(firstName)'
{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}
nbsp;curl 'http://localhost:4000__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__
$ curl 'http://localhost:4000
{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}
$ # Let's just get the first name
$ curl 'http://localhost:4000?fields=lastName
{"lastName":"Gandhi"}
$ # Now, let's just get the first names directly as well as from aliases
$ curl 'http://localhost:4000?fields=firstName,aliases(firstName)'
{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}
nbsp;# Let's just get the first name__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__
$ curl 'http://localhost:4000
{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}
$ # Let's just get the first name
$ curl 'http://localhost:4000?fields=lastName
{"lastName":"Gandhi"}
$ # Now, let's just get the first names directly as well as from aliases
$ curl 'http://localhost:4000?fields=firstName,aliases(firstName)'
{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}
nbsp;curl 'http://localhost:4000?fields=lastName__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__{"lastName":"Gandhi"}__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__
$ curl 'http://localhost:4000
{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}
$ # Let's just get the first name
$ curl 'http://localhost:4000?fields=lastName
{"lastName":"Gandhi"}
$ # Now, let's just get the first names directly as well as from aliases
$ curl 'http://localhost:4000?fields=firstName,aliases(firstName)'
{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}
nbsp;# Now, let's just get the first names directly as well as from aliases__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__
$ curl 'http://localhost:4000
{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}
$ # Let's just get the first name
$ curl 'http://localhost:4000?fields=lastName
{"lastName":"Gandhi"}
$ # Now, let's just get the first names directly as well as from aliases
$ curl 'http://localhost:4000?fields=firstName,aliases(firstName)'
{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}
nbsp;curl 'http://localhost:4000?fields=firstName,aliases(firstName)'__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__/pre__JJ_GT_JJ__nbsp;curl 'http://localhost:4000
{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}
__JJ_LT_JJ__pre__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__
$ curl 'http://localhost:4000
{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}
$ # Let's just get the first name
$ curl 'http://localhost:4000?fields=lastName
{"lastName":"Gandhi"}
$ # Now, let's just get the first names directly as well as from aliases
$ curl 'http://localhost:4000?fields=firstName,aliases(firstName)'
{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}
nbsp;curl 'http://localhost:4000__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__
$ curl 'http://localhost:4000
{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}
$ # Let's just get the first name
$ curl 'http://localhost:4000?fields=lastName
{"lastName":"Gandhi"}
$ # Now, let's just get the first names directly as well as from aliases
$ curl 'http://localhost:4000?fields=firstName,aliases(firstName)'
{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}
nbsp;# Let's just get the first name__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__
$ curl 'http://localhost:4000
{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}
$ # Let's just get the first name
$ curl 'http://localhost:4000?fields=lastName
{"lastName":"Gandhi"}
$ # Now, let's just get the first names directly as well as from aliases
$ curl 'http://localhost:4000?fields=firstName,aliases(firstName)'
{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}
nbsp;curl 'http://localhost:4000?fields=lastName__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__{"lastName":"Gandhi"}__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__
$ curl 'http://localhost:4000
{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}
$ # Let's just get the first name
$ curl 'http://localhost:4000?fields=lastName
{"lastName":"Gandhi"}
$ # Now, let's just get the first names directly as well as from aliases
$ curl 'http://localhost:4000?fields=firstName,aliases(firstName)'
{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}
nbsp;# Now, let's just get the first names directly as well as from aliases__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__
$ curl 'http://localhost:4000
{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}
$ # Let's just get the first name
$ curl 'http://localhost:4000?fields=lastName
{"lastName":"Gandhi"}
$ # Now, let's just get the first names directly as well as from aliases
$ curl 'http://localhost:4000?fields=firstName,aliases(firstName)'
{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}
nbsp;curl 'http://localhost:4000?fields=firstName,aliases(firstName)'__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__/pre__JJ_GT_JJ__nbsp;# Let's just get the first name
__JJ_LT_JJ__pre__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__
$ curl 'http://localhost:4000
{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}
$ # Let's just get the first name
$ curl 'http://localhost:4000?fields=lastName
{"lastName":"Gandhi"}
$ # Now, let's just get the first names directly as well as from aliases
$ curl 'http://localhost:4000?fields=firstName,aliases(firstName)'
{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}
nbsp;curl 'http://localhost:4000__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__
$ curl 'http://localhost:4000
{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}
$ # Let's just get the first name
$ curl 'http://localhost:4000?fields=lastName
{"lastName":"Gandhi"}
$ # Now, let's just get the first names directly as well as from aliases
$ curl 'http://localhost:4000?fields=firstName,aliases(firstName)'
{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}
nbsp;# Let's just get the first name__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__
$ curl 'http://localhost:4000
{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}
$ # Let's just get the first name
$ curl 'http://localhost:4000?fields=lastName
{"lastName":"Gandhi"}
$ # Now, let's just get the first names directly as well as from aliases
$ curl 'http://localhost:4000?fields=firstName,aliases(firstName)'
{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}
nbsp;curl 'http://localhost:4000?fields=lastName__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__{"lastName":"Gandhi"}__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__
$ curl 'http://localhost:4000
{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}
$ # Let's just get the first name
$ curl 'http://localhost:4000?fields=lastName
{"lastName":"Gandhi"}
$ # Now, let's just get the first names directly as well as from aliases
$ curl 'http://localhost:4000?fields=firstName,aliases(firstName)'
{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}
nbsp;# Now, let's just get the first names directly as well as from aliases__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__
$ curl 'http://localhost:4000
{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}
$ # Let's just get the first name
$ curl 'http://localhost:4000?fields=lastName
{"lastName":"Gandhi"}
$ # Now, let's just get the first names directly as well as from aliases
$ curl 'http://localhost:4000?fields=firstName,aliases(firstName)'
{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}
nbsp;curl 'http://localhost:4000?fields=firstName,aliases(firstName)'__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__/pre__JJ_GT_JJ__nbsp;curl 'http://localhost:4000?fields=lastName
{"lastName":"Gandhi"}
__JJ_LT_JJ__pre__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__
$ curl 'http://localhost:4000
{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}
$ # Let's just get the first name
$ curl 'http://localhost:4000?fields=lastName
{"lastName":"Gandhi"}
$ # Now, let's just get the first names directly as well as from aliases
$ curl 'http://localhost:4000?fields=firstName,aliases(firstName)'
{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}
nbsp;curl 'http://localhost:4000__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__
$ curl 'http://localhost:4000
{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}
$ # Let's just get the first name
$ curl 'http://localhost:4000?fields=lastName
{"lastName":"Gandhi"}
$ # Now, let's just get the first names directly as well as from aliases
$ curl 'http://localhost:4000?fields=firstName,aliases(firstName)'
{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}
nbsp;# Let's just get the first name__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__
$ curl 'http://localhost:4000
{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}
$ # Let's just get the first name
$ curl 'http://localhost:4000?fields=lastName
{"lastName":"Gandhi"}
$ # Now, let's just get the first names directly as well as from aliases
$ curl 'http://localhost:4000?fields=firstName,aliases(firstName)'
{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}
nbsp;curl 'http://localhost:4000?fields=lastName__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__{"lastName":"Gandhi"}__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__
$ curl 'http://localhost:4000
{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}
$ # Let's just get the first name
$ curl 'http://localhost:4000?fields=lastName
{"lastName":"Gandhi"}
$ # Now, let's just get the first names directly as well as from aliases
$ curl 'http://localhost:4000?fields=firstName,aliases(firstName)'
{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}
nbsp;# Now, let's just get the first names directly as well as from aliases__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__
$ curl 'http://localhost:4000
{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}
$ # Let's just get the first name
$ curl 'http://localhost:4000?fields=lastName
{"lastName":"Gandhi"}
$ # Now, let's just get the first names directly as well as from aliases
$ curl 'http://localhost:4000?fields=firstName,aliases(firstName)'
{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}
nbsp;curl 'http://localhost:4000?fields=firstName,aliases(firstName)'__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__/pre__JJ_GT_JJ__nbsp;# Now, let's just get the first names directly as well as from aliases
__JJ_LT_JJ__pre__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__
$ curl 'http://localhost:4000
{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}
$ # Let's just get the first name
$ curl 'http://localhost:4000?fields=lastName
{"lastName":"Gandhi"}
$ # Now, let's just get the first names directly as well as from aliases
$ curl 'http://localhost:4000?fields=firstName,aliases(firstName)'
{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}
nbsp;curl 'http://localhost:4000__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__
$ curl 'http://localhost:4000
{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}
$ # Let's just get the first name
$ curl 'http://localhost:4000?fields=lastName
{"lastName":"Gandhi"}
$ # Now, let's just get the first names directly as well as from aliases
$ curl 'http://localhost:4000?fields=firstName,aliases(firstName)'
{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}
nbsp;# Let's just get the first name__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__
$ curl 'http://localhost:4000
{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}
$ # Let's just get the first name
$ curl 'http://localhost:4000?fields=lastName
{"lastName":"Gandhi"}
$ # Now, let's just get the first names directly as well as from aliases
$ curl 'http://localhost:4000?fields=firstName,aliases(firstName)'
{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}
nbsp;curl 'http://localhost:4000?fields=lastName__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__{"lastName":"Gandhi"}__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__
$ curl 'http://localhost:4000
{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}
$ # Let's just get the first name
$ curl 'http://localhost:4000?fields=lastName
{"lastName":"Gandhi"}
$ # Now, let's just get the first names directly as well as from aliases
$ curl 'http://localhost:4000?fields=firstName,aliases(firstName)'
{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}
nbsp;# Now, let's just get the first names directly as well as from aliases__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__
$ curl 'http://localhost:4000
{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}
$ # Let's just get the first name
$ curl 'http://localhost:4000?fields=lastName
{"lastName":"Gandhi"}
$ # Now, let's just get the first names directly as well as from aliases
$ curl 'http://localhost:4000?fields=firstName,aliases(firstName)'
{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}
nbsp;curl 'http://localhost:4000?fields=firstName,aliases(firstName)'__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__/pre__JJ_GT_JJ__nbsp;curl 'http://localhost:4000?fields=firstName,aliases(firstName)'
{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}
nbsp;# Now, let's just get the first names directly as well as from aliases
__JJ_LT_JJ__pre__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__
$ curl 'http://localhost:4000
{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}
$ # Let's just get the first name
$ curl 'http://localhost:4000?fields=lastName
{"lastName":"Gandhi"}
$ # Now, let's just get the first names directly as well as from aliases
$ curl 'http://localhost:4000?fields=firstName,aliases(firstName)'
{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}
nbsp;curl 'http://localhost:4000__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__
$ curl 'http://localhost:4000
{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}
$ # Let's just get the first name
$ curl 'http://localhost:4000?fields=lastName
{"lastName":"Gandhi"}
$ # Now, let's just get the first names directly as well as from aliases
$ curl 'http://localhost:4000?fields=firstName,aliases(firstName)'
{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}
nbsp;# Let's just get the first name__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__
$ curl 'http://localhost:4000
{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}
$ # Let's just get the first name
$ curl 'http://localhost:4000?fields=lastName
{"lastName":"Gandhi"}
$ # Now, let's just get the first names directly as well as from aliases
$ curl 'http://localhost:4000?fields=firstName,aliases(firstName)'
{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}
nbsp;curl 'http://localhost:4000?fields=lastName__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__{"lastName":"Gandhi"}__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__
$ curl 'http://localhost:4000
{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}
$ # Let's just get the first name
$ curl 'http://localhost:4000?fields=lastName
{"lastName":"Gandhi"}
$ # Now, let's just get the first names directly as well as from aliases
$ curl 'http://localhost:4000?fields=firstName,aliases(firstName)'
{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}
nbsp;# Now, let's just get the first names directly as well as from aliases__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__
$ curl 'http://localhost:4000
{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}
$ # Let's just get the first name
$ curl 'http://localhost:4000?fields=lastName
{"lastName":"Gandhi"}
$ # Now, let's just get the first names directly as well as from aliases
$ curl 'http://localhost:4000?fields=firstName,aliases(firstName)'
{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}
nbsp;curl 'http://localhost:4000?fields=firstName,aliases(firstName)'__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__/pre__JJ_GT_JJ__nbsp;curl 'http://localhost:4000
{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}
__JJ_LT_JJ__pre__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__
$ curl 'http://localhost:4000
{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}
$ # Let's just get the first name
$ curl 'http://localhost:4000?fields=lastName
{"lastName":"Gandhi"}
$ # Now, let's just get the first names directly as well as from aliases
$ curl 'http://localhost:4000?fields=firstName,aliases(firstName)'
{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}
nbsp;curl 'http://localhost:4000__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__
$ curl 'http://localhost:4000
{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}
$ # Let's just get the first name
$ curl 'http://localhost:4000?fields=lastName
{"lastName":"Gandhi"}
$ # Now, let's just get the first names directly as well as from aliases
$ curl 'http://localhost:4000?fields=firstName,aliases(firstName)'
{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}
nbsp;# Let's just get the first name__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__
$ curl 'http://localhost:4000
{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}
$ # Let's just get the first name
$ curl 'http://localhost:4000?fields=lastName
{"lastName":"Gandhi"}
$ # Now, let's just get the first names directly as well as from aliases
$ curl 'http://localhost:4000?fields=firstName,aliases(firstName)'
{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}
nbsp;curl 'http://localhost:4000?fields=lastName__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__{"lastName":"Gandhi"}__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__
$ curl 'http://localhost:4000
{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}
$ # Let's just get the first name
$ curl 'http://localhost:4000?fields=lastName
{"lastName":"Gandhi"}
$ # Now, let's just get the first names directly as well as from aliases
$ curl 'http://localhost:4000?fields=firstName,aliases(firstName)'
{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}
nbsp;# Now, let's just get the first names directly as well as from aliases__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__
$ curl 'http://localhost:4000
{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}
$ # Let's just get the first name
$ curl 'http://localhost:4000?fields=lastName
{"lastName":"Gandhi"}
$ # Now, let's just get the first names directly as well as from aliases
$ curl 'http://localhost:4000?fields=firstName,aliases(firstName)'
{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}
nbsp;curl 'http://localhost:4000?fields=firstName,aliases(firstName)'__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__/pre__JJ_GT_JJ__nbsp;# Let's just get the first name
__JJ_LT_JJ__pre__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__
$ curl 'http://localhost:4000
{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}
$ # Let's just get the first name
$ curl 'http://localhost:4000?fields=lastName
{"lastName":"Gandhi"}
$ # Now, let's just get the first names directly as well as from aliases
$ curl 'http://localhost:4000?fields=firstName,aliases(firstName)'
{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}
nbsp;curl 'http://localhost:4000__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__
$ curl 'http://localhost:4000
{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}
$ # Let's just get the first name
$ curl 'http://localhost:4000?fields=lastName
{"lastName":"Gandhi"}
$ # Now, let's just get the first names directly as well as from aliases
$ curl 'http://localhost:4000?fields=firstName,aliases(firstName)'
{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}
nbsp;# Let's just get the first name__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__
$ curl 'http://localhost:4000
{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}
$ # Let's just get the first name
$ curl 'http://localhost:4000?fields=lastName
{"lastName":"Gandhi"}
$ # Now, let's just get the first names directly as well as from aliases
$ curl 'http://localhost:4000?fields=firstName,aliases(firstName)'
{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}
nbsp;curl 'http://localhost:4000?fields=lastName__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__{"lastName":"Gandhi"}__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__
$ curl 'http://localhost:4000
{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}
$ # Let's just get the first name
$ curl 'http://localhost:4000?fields=lastName
{"lastName":"Gandhi"}
$ # Now, let's just get the first names directly as well as from aliases
$ curl 'http://localhost:4000?fields=firstName,aliases(firstName)'
{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}
nbsp;# Now, let's just get the first names directly as well as from aliases__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__
$ curl 'http://localhost:4000
{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}
$ # Let's just get the first name
$ curl 'http://localhost:4000?fields=lastName
{"lastName":"Gandhi"}
$ # Now, let's just get the first names directly as well as from aliases
$ curl 'http://localhost:4000?fields=firstName,aliases(firstName)'
{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}
nbsp;curl 'http://localhost:4000?fields=firstName,aliases(firstName)'__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__/pre__JJ_GT_JJ__nbsp;curl 'http://localhost:4000?fields=lastName
{"lastName":"Gandhi"}
__JJ_LT_JJ__pre__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__
$ curl 'http://localhost:4000
{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}
$ # Let's just get the first name
$ curl 'http://localhost:4000?fields=lastName
{"lastName":"Gandhi"}
$ # Now, let's just get the first names directly as well as from aliases
$ curl 'http://localhost:4000?fields=firstName,aliases(firstName)'
{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}
nbsp;curl 'http://localhost:4000__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__
$ curl 'http://localhost:4000
{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}
$ # Let's just get the first name
$ curl 'http://localhost:4000?fields=lastName
{"lastName":"Gandhi"}
$ # Now, let's just get the first names directly as well as from aliases
$ curl 'http://localhost:4000?fields=firstName,aliases(firstName)'
{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}
nbsp;# Let's just get the first name__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__
$ curl 'http://localhost:4000
{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}
$ # Let's just get the first name
$ curl 'http://localhost:4000?fields=lastName
{"lastName":"Gandhi"}
$ # Now, let's just get the first names directly as well as from aliases
$ curl 'http://localhost:4000?fields=firstName,aliases(firstName)'
{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}
nbsp;curl 'http://localhost:4000?fields=lastName__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__{"lastName":"Gandhi"}__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__
$ curl 'http://localhost:4000
{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}
$ # Let's just get the first name
$ curl 'http://localhost:4000?fields=lastName
{"lastName":"Gandhi"}
$ # Now, let's just get the first names directly as well as from aliases
$ curl 'http://localhost:4000?fields=firstName,aliases(firstName)'
{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}
nbsp;# Now, let's just get the first names directly as well as from aliases__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__
$ curl 'http://localhost:4000
{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}
$ # Let's just get the first name
$ curl 'http://localhost:4000?fields=lastName
{"lastName":"Gandhi"}
$ # Now, let's just get the first names directly as well as from aliases
$ curl 'http://localhost:4000?fields=firstName,aliases(firstName)'
{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}
nbsp;curl 'http://localhost:4000?fields=firstName,aliases(firstName)'__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__/pre__JJ_GT_JJ__nbsp;# Now, let's just get the first names directly as well as from aliases
__JJ_LT_JJ__pre__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__
$ curl 'http://localhost:4000
{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}
$ # Let's just get the first name
$ curl 'http://localhost:4000?fields=lastName
{"lastName":"Gandhi"}
$ # Now, let's just get the first names directly as well as from aliases
$ curl 'http://localhost:4000?fields=firstName,aliases(firstName)'
{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}
nbsp;curl 'http://localhost:4000__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__
$ curl 'http://localhost:4000
{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}
$ # Let's just get the first name
$ curl 'http://localhost:4000?fields=lastName
{"lastName":"Gandhi"}
$ # Now, let's just get the first names directly as well as from aliases
$ curl 'http://localhost:4000?fields=firstName,aliases(firstName)'
{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}
nbsp;# Let's just get the first name__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__
$ curl 'http://localhost:4000
{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}
$ # Let's just get the first name
$ curl 'http://localhost:4000?fields=lastName
{"lastName":"Gandhi"}
$ # Now, let's just get the first names directly as well as from aliases
$ curl 'http://localhost:4000?fields=firstName,aliases(firstName)'
{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}
nbsp;curl 'http://localhost:4000?fields=lastName__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__{"lastName":"Gandhi"}__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__
$ curl 'http://localhost:4000
{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}
$ # Let's just get the first name
$ curl 'http://localhost:4000?fields=lastName
{"lastName":"Gandhi"}
$ # Now, let's just get the first names directly as well as from aliases
$ curl 'http://localhost:4000?fields=firstName,aliases(firstName)'
{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}
nbsp;# Now, let's just get the first names directly as well as from aliases__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__
$ curl 'http://localhost:4000
{"firstName":"Mohandas","lastName":"Gandhi","aliases":[{"firstName":"Mahatma","lastName":"Gandhi"},{"firstName":"Bapu"}]}
$ # Let's just get the first name
$ curl 'http://localhost:4000?fields=lastName
{"lastName":"Gandhi"}
$ # Now, let's just get the first names directly as well as from aliases
$ curl 'http://localhost:4000?fields=firstName,aliases(firstName)'
{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}
nbsp;curl 'http://localhost:4000?fields=firstName,aliases(firstName)'__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__div__JJ_GT_JJ__{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}__JJ_LT_JJ__/div__JJ_GT_JJ____JJ_LT_JJ__/pre__JJ_GT_JJ__nbsp;curl 'http://localhost:4000?fields=firstName,aliases(firstName)'
{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}
nbsp;curl 'http://localhost:4000?fields=firstName,aliases(firstName)'
{"firstName":"Mohandas","aliases":[{"firstName":"Mahatma"},{"firstName":"Bapu"}]}

Note: take a look at /example.

Syntax

Look at json-mask[2] for the available syntax of the fields param.

Options

query specifies the query-string to use. Defaults to fields

partialResponse
  queryfilter

License

MIT. See LICENSE