when(booleanField.getBoolean()).thenReturn(true); when(container.getBoolean("boolean")).thenReturn(booleanField);
return null; return booleanList.getList().stream().map(item -> item.getBoolean()).collect(Collectors.toList()); case "html": HtmlGraphFieldList htmlList = container.getHTMLList(schema.getName());
public GraphQLFieldDefinition createBooleanDef(FieldSchema schema) { return newFieldDefinition().name(schema.getName()).description(schema.getLabel()).type(GraphQLBoolean).dataFetcher(env -> { GraphFieldContainer container = env.getSource(); BooleanGraphField booleanField = container.getBoolean(schema.getName()); if (booleanField != null) { return booleanField.getBoolean(); } return null; }).build(); }
BooleanGraphField booleanField = container.getBoolean(name); if (booleanField != null) { fieldsMap.put(name, booleanField.getBoolean()); List<String> booleanItems = new ArrayList<>(); for (BooleanGraphField listItem : graphBooleanList.getList()) { booleanItems.add(String.valueOf(listItem.getBoolean()));