{"id":35711,"date":"2016-07-23T18:14:38","date_gmt":"2016-07-23T12:44:38","guid":{"rendered":"https:\/\/tothenewco.pro\/blog\/?p=35711"},"modified":"2016-07-25T12:07:11","modified_gmt":"2016-07-25T06:37:11","slug":"mongo-case-insensitive-inlist-query","status":"publish","type":"post","link":"https:\/\/tothenewco.pro\/blog\/mongo-case-insensitive-inlist-query\/","title":{"rendered":"Mongo Case Insensitive InList Query"},"content":{"rendered":"<p>As we know in <a title=\"MongoDB Consulting\" href=\"https:\/\/tothenewco.pro\/mean-stack-web-development-consulting\" target=\"_blank\">Mongo<\/a> the match queries are case sensitive. So whether we do a <code>find()<\/code> operation or use <code>$match<\/code> stage of <code>aggregate<\/code> pipeline, the condition would be true only if its a exact case sensitive match. Of cource we can use regex to do case insensitive queries but then again it will not work when we are trying to find a match with in a list of possible matches. Although we can use javascript for that but there is no easy way when you want to do this using java driver for mongo and aggregation pipeline.<\/p>\n<p>To understand the requirement, lets see below json document list from a <strong>Sales<\/strong> collection:<\/p>\n<p>[code lang=&#8221;groovy&#8221;]<br \/>\n{<br \/>\n    &quot;_id&quot; : ObjectId(&quot;576105331d41b83a770253f2&quot;),<br \/>\n    &quot;EndUser&quot; : &quot;XYZ Ltd&quot;,<br \/>\n    &quot;SoldTo&quot; : &quot;0001005191&quot;,<br \/>\n    &quot;SalesItemQuantity&quot; : NumberInt(10),<br \/>\n    &quot;VendorName&quot; : &quot;ABC&quot;,<br \/>\n    &quot;SalesOrder&quot; : &quot;SO411187&quot;<br \/>\n}<br \/>\n{<br \/>\n    &quot;_id&quot; : ObjectId(&quot;576105331d41b83a770253f3&quot;),<br \/>\n    &quot;EndUser&quot; : &quot;XYZ LTD&quot;,<br \/>\n    &quot;SoldTo&quot; : &quot;0001005191&quot;,<br \/>\n    &quot;SalesItemQuantity&quot; : NumberInt(8),<br \/>\n    &quot;VendorName&quot; : &quot;abc&quot;,<br \/>\n    &quot;SalesOrder&quot; : &quot;SO417994&quot;<br \/>\n}<br \/>\n{<br \/>\n    &quot;_id&quot; : ObjectId(&quot;576105331d41b83a770253f4&quot;),<br \/>\n    &quot;EndUser&quot; : &quot;AAA LTD&quot;,<br \/>\n    &quot;SoldTo&quot; : &quot;0001005191&quot;,<br \/>\n    &quot;SalesItemQuantity&quot; : NumberInt(13),<br \/>\n    &quot;VendorName&quot; : &quot;XYZ&quot;,<br \/>\n    &quot;SalesOrder&quot; : &quot;SO417564&quot;<br \/>\n}<br \/>\n[\/code]<\/p>\n<p>We have three documents here. We want to find all the documents where <code>EndUser<\/code> value is in list <code>[XYZ LTD, ABC LTD]<\/code>. We can say &#8220;XYZ Ltd&#8221; and &#8220;XYZ LTD&#8221; are same for us but when we query to mongo, they are different.<\/p>\n<p><strong>So how to do this:<\/strong><br \/>\nWe need to use an aggregate pipeline here instead of a direct find() operation. Stages of pipeline query:<\/p>\n<ol>\n<li>Projection &#8211; During this stage we will convert all EndUser values to their upper case.<\/li>\n<li>Match &#8211; Match upper case EndUser values with the given list of values.<\/li>\n<\/ol>\n<p>Mongo Query:<\/p>\n<p>[code lang=&#8221;groovy&#8221;]<br \/>\ndb.Sales.aggregate(<\/p>\n<p>  \/\/ Pipeline<br \/>\n  [<br \/>\n    \/\/ Stage 1<br \/>\n    {<br \/>\n      $project: {<br \/>\n        \/\/Convert EndUser to UpperCase<br \/>\n        &quot;EndUser&quot;: {<br \/>\n          &quot;$let&quot;: {<br \/>\n            \/\/var declaration<br \/>\n            &quot;vars&quot;: {<br \/>\n              &quot;endUserVar&quot;: &quot;$EndUser&quot;<br \/>\n            },<br \/>\n            &quot;in&quot;: {<br \/>\n              \/\/conversion to upper case<br \/>\n              &quot;$toUpper&quot;: &quot;$$endUserVar&quot;<br \/>\n            }<br \/>\n          }<br \/>\n        },<br \/>\n        \/\/We need to include all other fields also in projection otherwise they will not be available in next stage \u03b5(\u00b4\ufb41\ufe35\ufb41`)\u0437<br \/>\n        &quot;SoldTo&quot;: 1,<br \/>\n        &quot;SalesOrder&quot;: 1,<br \/>\n        &quot;VendorName&quot;: 1,<br \/>\n        &quot;SalesItemQuantity&quot;: 1<br \/>\n      }<br \/>\n    },<\/p>\n<p>    \/\/ Stage 2: match using in operator<br \/>\n    {<br \/>\n      $match: {<br \/>\n        &quot;EndUser&quot; : {<br \/>\n          &quot;$in&quot; : [<br \/>\n          \t&quot;XYZ LTD&quot;,<br \/>\n          \t&quot;ABC LTD&quot;<br \/>\n          ]<br \/>\n        }<br \/>\n      }<br \/>\n    }<\/p>\n<p>  ]<\/p>\n<p>);<br \/>\n[\/code]<\/p>\n<p>One issue that I can see here is during projection query at first stage, we have to include all parent keys which we want to be available in next stage. But again if it helps to resolve our problem then we can do that \ud83d\ude09<\/p>\n","protected":false},"excerpt":{"rendered":"<p>As we know in Mongo the match queries are case sensitive. So whether we do a find() operation or use $match stage of aggregate pipeline, the condition would be true only if its a exact case sensitive match. Of cource we can use regex to do case insensitive queries but then again it will not [&hellip;]<\/p>\n","protected":false},"author":182,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"iawp_total_views":12,"footnotes":""},"categories":[1],"tags":[3483,1900],"class_list":["post-35711","post","type-post","status-publish","format-standard","hentry","category-technology","tag-case-insensitive-query","tag-mongo-db"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.0.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"As we know in Mongo the match queries are case sensitive. So whether we do a find() operation or use $match stage of aggregate pipeline, the condition would be true only if its a exact case sensitive match. Of cource we can use regex to do case insensitive queries but then again it will not\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Sandeep Poonia\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/tothenewco.pro\/blog\/mongo-case-insensitive-inlist-query\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.0.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"TO THE NEW BLOG\" \/>\n\t\t<meta property=\"og:type\" content=\"blog\" \/>\n\t\t<meta property=\"og:title\" content=\"Mongo Case Insensitive InList Query | TO THE NEW Blog\" \/>\n\t\t<meta property=\"og:description\" content=\"As we know in Mongo the match queries are case sensitive. So whether we do a find() operation or use $match stage of aggregate pipeline, the condition would be true only if its a exact case sensitive match. Of cource we can use regex to do case insensitive queries but then again it will not\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/tothenewco.pro\/blog\/mongo-case-insensitive-inlist-query\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/tothenewco.pro\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/tothenewco.pro\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:site\" content=\"@tothenew\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Mongo Case Insensitive InList Query | TO THE NEW Blog\" \/>\n\t\t<meta name=\"twitter:description\" content=\"As we know in Mongo the match queries are case sensitive. So whether we do a find() operation or use $match stage of aggregate pipeline, the condition would be true only if its a exact case sensitive match. Of cource we can use regex to do case insensitive queries but then again it will not\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/tothenewco.pro\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/mongo-case-insensitive-inlist-query\\\/#article\",\"name\":\"Mongo Case Insensitive InList Query | TO THE NEW Blog\",\"headline\":\"Mongo Case Insensitive InList Query\",\"author\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/sandeeppoonia\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\"},\"datePublished\":\"2016-07-23T18:14:38+05:30\",\"dateModified\":\"2016-07-25T12:07:11+05:30\",\"inLanguage\":\"en-US\",\"commentCount\":1,\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/mongo-case-insensitive-inlist-query\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/mongo-case-insensitive-inlist-query\\\/#webpage\"},\"articleSection\":\"Technology, Case Insensitive Query, Mongo DB\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/mongo-case-insensitive-inlist-query\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.tothenew.com\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/technology\\\/#listItem\",\"name\":\"Technology\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/technology\\\/#listItem\",\"position\":2,\"name\":\"Technology\",\"item\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/technology\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/mongo-case-insensitive-inlist-query\\\/#listItem\",\"name\":\"Mongo Case Insensitive InList Query\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/mongo-case-insensitive-inlist-query\\\/#listItem\",\"position\":3,\"name\":\"Mongo Case Insensitive InList Query\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/technology\\\/#listItem\",\"name\":\"Technology\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\",\"name\":\"TO THE NEW Blog\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/sandeeppoonia\\\/#author\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/sandeeppoonia\\\/\",\"name\":\"Sandeep Poonia\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/mongo-case-insensitive-inlist-query\\\/#authorImage\",\"url\":\"https:\\\/\\\/newersworld-sf-static.tothenew.net\\\/prod\\\/profilePicFolder\\\/8d46cfd3-1f3e-4c89-85b1-cec1718995da_839-Sandeep-Poonia-PROFILEPICTURE.jpeg\",\"width\":96,\"height\":96,\"caption\":\"Sandeep Poonia\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/mongo-case-insensitive-inlist-query\\\/#webpage\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/mongo-case-insensitive-inlist-query\\\/\",\"name\":\"Mongo Case Insensitive InList Query | TO THE NEW Blog\",\"description\":\"As we know in Mongo the match queries are case sensitive. So whether we do a find() operation or use $match stage of aggregate pipeline, the condition would be true only if its a exact case sensitive match. Of cource we can use regex to do case insensitive queries but then again it will not\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/mongo-case-insensitive-inlist-query\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/sandeeppoonia\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/sandeeppoonia\\\/#author\"},\"datePublished\":\"2016-07-23T18:14:38+05:30\",\"dateModified\":\"2016-07-25T12:07:11+05:30\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/\",\"name\":\"TO THE NEW Blog\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Mongo Case Insensitive InList Query | TO THE NEW Blog","description":"As we know in Mongo the match queries are case sensitive. So whether we do a find() operation or use $match stage of aggregate pipeline, the condition would be true only if its a exact case sensitive match. Of cource we can use regex to do case insensitive queries but then again it will not","canonical_url":"https:\/\/tothenewco.pro\/blog\/mongo-case-insensitive-inlist-query\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/tothenewco.pro\/blog\/mongo-case-insensitive-inlist-query\/#article","name":"Mongo Case Insensitive InList Query | TO THE NEW Blog","headline":"Mongo Case Insensitive InList Query","author":{"@id":"https:\/\/tothenewco.pro\/blog\/author\/sandeeppoonia\/#author"},"publisher":{"@id":"https:\/\/tothenewco.pro\/blog\/#organization"},"datePublished":"2016-07-23T18:14:38+05:30","dateModified":"2016-07-25T12:07:11+05:30","inLanguage":"en-US","commentCount":1,"mainEntityOfPage":{"@id":"https:\/\/tothenewco.pro\/blog\/mongo-case-insensitive-inlist-query\/#webpage"},"isPartOf":{"@id":"https:\/\/tothenewco.pro\/blog\/mongo-case-insensitive-inlist-query\/#webpage"},"articleSection":"Technology, Case Insensitive Query, Mongo DB"},{"@type":"BreadcrumbList","@id":"https:\/\/tothenewco.pro\/blog\/mongo-case-insensitive-inlist-query\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/tothenewco.pro\/blog#listItem","position":1,"name":"Home","item":"https:\/\/tothenewco.pro\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/tothenewco.pro\/blog\/category\/technology\/#listItem","name":"Technology"}},{"@type":"ListItem","@id":"https:\/\/tothenewco.pro\/blog\/category\/technology\/#listItem","position":2,"name":"Technology","item":"https:\/\/tothenewco.pro\/blog\/category\/technology\/","nextItem":{"@type":"ListItem","@id":"https:\/\/tothenewco.pro\/blog\/mongo-case-insensitive-inlist-query\/#listItem","name":"Mongo Case Insensitive InList Query"},"previousItem":{"@type":"ListItem","@id":"https:\/\/tothenewco.pro\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/tothenewco.pro\/blog\/mongo-case-insensitive-inlist-query\/#listItem","position":3,"name":"Mongo Case Insensitive InList Query","previousItem":{"@type":"ListItem","@id":"https:\/\/tothenewco.pro\/blog\/category\/technology\/#listItem","name":"Technology"}}]},{"@type":"Organization","@id":"https:\/\/tothenewco.pro\/blog\/#organization","name":"TO THE NEW Blog","url":"https:\/\/tothenewco.pro\/blog\/"},{"@type":"Person","@id":"https:\/\/tothenewco.pro\/blog\/author\/sandeeppoonia\/#author","url":"https:\/\/tothenewco.pro\/blog\/author\/sandeeppoonia\/","name":"Sandeep Poonia","image":{"@type":"ImageObject","@id":"https:\/\/tothenewco.pro\/blog\/mongo-case-insensitive-inlist-query\/#authorImage","url":"https:\/\/newersworld-sf-static.tothenew.net\/prod\/profilePicFolder\/8d46cfd3-1f3e-4c89-85b1-cec1718995da_839-Sandeep-Poonia-PROFILEPICTURE.jpeg","width":96,"height":96,"caption":"Sandeep Poonia"}},{"@type":"WebPage","@id":"https:\/\/tothenewco.pro\/blog\/mongo-case-insensitive-inlist-query\/#webpage","url":"https:\/\/tothenewco.pro\/blog\/mongo-case-insensitive-inlist-query\/","name":"Mongo Case Insensitive InList Query | TO THE NEW Blog","description":"As we know in Mongo the match queries are case sensitive. So whether we do a find() operation or use $match stage of aggregate pipeline, the condition would be true only if its a exact case sensitive match. Of cource we can use regex to do case insensitive queries but then again it will not","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/tothenewco.pro\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/tothenewco.pro\/blog\/mongo-case-insensitive-inlist-query\/#breadcrumblist"},"author":{"@id":"https:\/\/tothenewco.pro\/blog\/author\/sandeeppoonia\/#author"},"creator":{"@id":"https:\/\/tothenewco.pro\/blog\/author\/sandeeppoonia\/#author"},"datePublished":"2016-07-23T18:14:38+05:30","dateModified":"2016-07-25T12:07:11+05:30"},{"@type":"WebSite","@id":"https:\/\/tothenewco.pro\/blog\/#website","url":"https:\/\/tothenewco.pro\/blog\/","name":"TO THE NEW Blog","inLanguage":"en-US","publisher":{"@id":"https:\/\/tothenewco.pro\/blog\/#organization"}}]},"og:locale":"en_US","og:site_name":"TO THE NEW BLOG","og:type":"blog","og:title":"Mongo Case Insensitive InList Query | TO THE NEW Blog","og:description":"As we know in Mongo the match queries are case sensitive. So whether we do a find() operation or use $match stage of aggregate pipeline, the condition would be true only if its a exact case sensitive match. Of cource we can use regex to do case insensitive queries but then again it will not","og:url":"https:\/\/tothenewco.pro\/blog\/mongo-case-insensitive-inlist-query\/","og:image":"https:\/\/tothenewco.pro\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png","og:image:secure_url":"https:\/\/tothenewco.pro\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png","twitter:card":"summary","twitter:site":"@tothenew","twitter:title":"Mongo Case Insensitive InList Query | TO THE NEW Blog","twitter:description":"As we know in Mongo the match queries are case sensitive. So whether we do a find() operation or use $match stage of aggregate pipeline, the condition would be true only if its a exact case sensitive match. Of cource we can use regex to do case insensitive queries but then again it will not","twitter:image":"https:\/\/tothenewco.pro\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png"},"aioseo_meta_data":{"post_id":"35711","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":"","og_description":"","og_object_type":"blog","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":"","og_article_tags":"","twitter_use_og":false,"twitter_card":"summary","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"Article","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"limit_modified_date":false,"created":"2021-04-29 12:01:07","updated":"2024-02-29 08:17:26","focus_keyword":null,"additional_keywords":null,"truseo_locale":null,"ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/tothenewco.pro\/blog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/tothenewco.pro\/blog\/category\/technology\/\" title=\"Technology\">Technology<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tMongo Case Insensitive InList Query\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/tothenewco.pro\/blog"},{"label":"Technology","link":"https:\/\/tothenewco.pro\/blog\/category\/technology\/"},{"label":"Mongo Case Insensitive InList Query","link":"https:\/\/tothenewco.pro\/blog\/mongo-case-insensitive-inlist-query\/"}],"_links":{"self":[{"href":"https:\/\/tothenewco.pro\/blog\/wp-json\/wp\/v2\/posts\/35711","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tothenewco.pro\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tothenewco.pro\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tothenewco.pro\/blog\/wp-json\/wp\/v2\/users\/182"}],"replies":[{"embeddable":true,"href":"https:\/\/tothenewco.pro\/blog\/wp-json\/wp\/v2\/comments?post=35711"}],"version-history":[{"count":0,"href":"https:\/\/tothenewco.pro\/blog\/wp-json\/wp\/v2\/posts\/35711\/revisions"}],"wp:attachment":[{"href":"https:\/\/tothenewco.pro\/blog\/wp-json\/wp\/v2\/media?parent=35711"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tothenewco.pro\/blog\/wp-json\/wp\/v2\/categories?post=35711"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tothenewco.pro\/blog\/wp-json\/wp\/v2\/tags?post=35711"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}