Robert
Here is what I have so far but the geometry is not getting returned. This is the 4.5 API as well.
document.getElementById("layer-select").addEventListener(
"change",
function doQuery() {
var layerSelect = document.getElementById("layer-select");
resultsLayer.removeAll();
console.log(layerSelect.value);
coreSample = layerSelect.value;
var query = new Query();
query.where = "1 = 1";
queryWells.executeForIds(query).then(function(wellOids){
console.log(wellOids);
console.log(coreSample);
relationQuery2 = new RelationshipQuery({
objectIds: [wellOids],
definitionExpression: "TYPE =" + coreSample,
outFields: ["UWI"],
returnGeometry: true,
relationshipId: 0
});
queryWells.executeRelationshipQuery(relationQuery2).then(function(selectTypes){
console.log(selectTypes);
console.log("relate");
});
});
});