com.commercetools.graphql.api.client.GeometryProjection Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of commercetools-graphql-api Show documentation
Show all versions of commercetools-graphql-api Show documentation
The e-commerce SDK from commercetools Composable Commerce for Java
package com.commercetools.graphql.api.client;
import com.netflix.graphql.dgs.client.codegen.BaseSubProjectionNode;
public class GeometryProjection, ROOT extends BaseSubProjectionNode, ?>> extends BaseSubProjectionNode {
public GeometryProjection(PARENT parent, ROOT root) {
super(parent, root, java.util.Optional.of("Geometry"));
}
public GeometryProjection __typename() {
getFields().put("__typename", null);
return this;
}
public GeometryProjection type() {
getFields().put("type", null);
return this;
}
public PointFragmentProjection, ROOT> onPoint() {
PointFragmentProjection, ROOT> fragment = new PointFragmentProjection<>(this, getRoot());
getFragments().add(fragment);
return fragment;
}
}