-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support aggregate query result (#95)
* Support aggregate query result * Adapt query tests to handle single or multiple result pages
- Loading branch information
Showing
12 changed files
with
262 additions
and
108 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
{ | ||
"attributes" : { | ||
"type" : "Account", | ||
"url" : "/services/data/v41.0/sobjects/Account/0011Y00002LZRxeQAH" | ||
}, | ||
"Id" : "0011Y00002LZRxeQAH", | ||
"IsDeleted" : false, | ||
"MasterRecordId" : null, | ||
"Name" : "Megacorp, Inc.", | ||
"Type" : null, | ||
"RecordTypeId" : null, | ||
"ParentId" : null, | ||
"BillingStreet" : null, | ||
"BillingCity" : null, | ||
"BillingState" : null, | ||
"BillingPostalCode" : "55141", | ||
"BillingCountry" : "US", | ||
"BillingLatitude" : null, | ||
"BillingLongitude" : null, | ||
"BillingGeocodeAccuracy" : null, | ||
"BillingAddress" : { | ||
"city" : "Pleasant Prairie", | ||
"country" : "US", | ||
"geocodeAccuracy" : null, | ||
"latitude" : null, | ||
"longitude" : null, | ||
"postalCode" : "55141", | ||
"state" : "WI", | ||
"street" : null | ||
}, | ||
"ShippingStreet" : null, | ||
"ShippingCity" : null, | ||
"ShippingState" : null, | ||
"ShippingPostalCode" : null, | ||
"ShippingCountry" : null, | ||
"ShippingLatitude" : null, | ||
"ShippingLongitude" : null, | ||
"ShippingGeocodeAccuracy" : null, | ||
"ShippingAddress" : null, | ||
"Phone" : null, | ||
"Fax" : null, | ||
"AccountNumber" : null, | ||
"Website" : "https://www.megacorp.com", | ||
"PhotoUrl" : "/services/images/photo/0011Y00002LZRxeQAH", | ||
"Sic" : null, | ||
"Industry" : null, | ||
"AnnualRevenue" : 543210.0, | ||
"NumberOfEmployees" : 12345, | ||
"Ownership" : null, | ||
"TickerSymbol" : null, | ||
"Description" : null, | ||
"Rating" : null, | ||
"Site" : null, | ||
"OwnerId" : "005i00000016PdaAAE", | ||
"CreatedDate" : "2017-10-11T13:11:58.000+0000", | ||
"CreatedById" : "005i00000016PdaAAE", | ||
"LastModifiedDate" : "2017-10-11T13:11:58.000+0000", | ||
"LastModifiedById" : "005i00000016PdaAAE", | ||
"SystemModstamp" : "2017-10-12T00:02:54.000+0000", | ||
"LastActivityDate" : null, | ||
"LastViewedDate" : null, | ||
"LastReferencedDate" : null, | ||
"Jigsaw" : null, | ||
"JigsawCompanyId" : null, | ||
"AccountSource" : null, | ||
"SicDesc" : null, | ||
"playground__CustomerPriority__c" : null, | ||
"playground__SLA__c" : null, | ||
"playground__Active__c" : null, | ||
"playground__NumberofLocations__c" : null, | ||
"playground__UpsellOpportunity__c" : null, | ||
"playground__SLASerialNumber__c" : null, | ||
"playground__SLAExpirationDate__c" : null, | ||
"playground__Owners_Manager_Name__c" : "User, Test", | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
{ | ||
"totalSize" : 12, | ||
"done" : true, | ||
"records" : [ { | ||
"attributes" : { | ||
"type" : "Account", | ||
"url" : "/services/data/v44.0/sobjects/Account/001B000000oAiZ9IAK" | ||
}, | ||
"Id" : "001B000000oAiW9IAK", | ||
"Name" : "Edge Communications" | ||
}, { | ||
"attributes" : { | ||
"type" : "Account", | ||
"url" : "/services/data/v44.0/sobjects/Account/001B000000oAiZAIA0" | ||
}, | ||
"Id" : "001B000000oAiWAIA0", | ||
"Name" : "Burlington Textiles Corp of America" | ||
}, { | ||
"attributes" : { | ||
"type" : "Account", | ||
"url" : "/services/data/v44.0/sobjects/Account/001B000000oAiZBIA0" | ||
}, | ||
"Id" : "001B000000oAiWBIA0", | ||
"Name" : "Pyramid Construction Inc." | ||
}, { | ||
"attributes" : { | ||
"type" : "Account", | ||
"url" : "/services/data/v44.0/sobjects/Account/001B000000oAiZCIA0" | ||
}, | ||
"Id" : "001B000000oAiWCIA0", | ||
"Name" : "Dickenson plc" | ||
}, { | ||
"attributes" : { | ||
"type" : "Account", | ||
"url" : "/services/data/v44.0/sobjects/Account/001B000000oAiZDIA0" | ||
}, | ||
"Id" : "001B000000oAiWDIA0", | ||
"Name" : "Grand Hotels & Resorts Ltd" | ||
}, { | ||
"attributes" : { | ||
"type" : "Account", | ||
"url" : "/services/data/v44.0/sobjects/Account/001B000000oAiZEIA0" | ||
}, | ||
"Id" : "001B000000oAiWEIA0", | ||
"Name" : "United Oil & Gas Corp." | ||
}, { | ||
"attributes" : { | ||
"type" : "Account", | ||
"url" : "/services/data/v44.0/sobjects/Account/001B000000oAiZFIA0" | ||
}, | ||
"Id" : "001B000000oAiWFIA0", | ||
"Name" : "Express Logistics and Transport" | ||
}, { | ||
"attributes" : { | ||
"type" : "Account", | ||
"url" : "/services/data/v44.0/sobjects/Account/001B000000oAiZGIA0" | ||
}, | ||
"Id" : "001B000000oAiWGIA0", | ||
"Name" : "University of Arizona" | ||
}, { | ||
"attributes" : { | ||
"type" : "Account", | ||
"url" : "/services/data/v44.0/sobjects/Account/001B000000oAiZHIA0" | ||
}, | ||
"Id" : "001B000000oAiWHIA0", | ||
"Name" : "United Oil & Gas, UK" | ||
}, { | ||
"attributes" : { | ||
"type" : "Account", | ||
"url" : "/services/data/v44.0/sobjects/Account/001B000000oAiZIIA0" | ||
}, | ||
"Id" : "001B000000oAiWIIA0", | ||
"Name" : "United Oil & Gas, Singapore" | ||
}, { | ||
"attributes" : { | ||
"type" : "Account", | ||
"url" : "/services/data/v44.0/sobjects/Account/001B000000oAiZJIA0" | ||
}, | ||
"Id" : "001B000000oAiWJIA0", | ||
"Name" : "GenePoint" | ||
}, { | ||
"attributes" : { | ||
"type" : "Account", | ||
"url" : "/services/data/v44.0/sobjects/Account/001B000000oAiZKIA0" | ||
}, | ||
"Id" : "001B000000oAiWKIA0", | ||
"Name" : "sForce" | ||
} ] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"totalSize" : 2, | ||
"done" : true, | ||
"records" : [ { | ||
"attributes" : { | ||
"type" : "AggregateResult" | ||
}, | ||
"AccountId" : "001B000000oAiZAIA0", | ||
"expr0" : 2 | ||
}, { | ||
"attributes" : { | ||
"type" : "AggregateResult" | ||
}, | ||
"AccountId" : "001B000000oAiZ9IAK", | ||
"expr0" : 1 | ||
} ] | ||
} |
Oops, something went wrong.