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
@DgsEntityFetcher(name="Shows") | |
public Show show(Map<String, Object> values) { | |
return new Show((String) values.get("id"), null); | |
} |
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
type Show @key(fields: "id") @extends { | |
Id: ID @external | |
reviews: [Review] | |
} | |
type Review { | |
starRating: Int | |
} |
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
type Query { | |
shows(titleFilter: String): [Show] | |
} | |
type Show { | |
title: String | |
releaseYear: Int | |
} |
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
@DgsComponent | |
public class ShowsDatafetcher { | |
private final List<Show> shows = | |
List.of( | |
new Show("Stranger Things", 2016), | |
new Show("Ozark", 2017) | |
); | |
@DgsData(parentType = "Query", field = "shows") |
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
@SpringBootTest(classes = {DgsAutoConfiguration.class, ShowsDatafetcher.class}) | |
class ShowsDatafetcherTest { | |
@Autowired | |
DgsQueryExecutor dgsQueryExecutor; | |
@Test | |
void shows() { | |
List<String> titles = dgsQueryExecutor.executeAndExtractJsonPath( | |
" { shows { title releaseYear }}", | |
"data.shows[*].title"); |
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
<script type="application/javascript"> | |
(function() { | |
if (!window.console) { | |
window.console = {}; | |
} | |
// union of Chrome, FF, IE, and Safari console methods | |
var m = [ | |
"log", "info", "warn", "error", "debug", "trace", "dir", "group", | |
"groupCollapsed", "groupEnd", "time", "timeEnd", "profile", "profileEnd", | |
"dirxml", "assert", "count", "markTimeline", "timeStamp", "clear" |
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
-runproperties: org.osgi.framework.system.packages='org.osgi.framework.system.packages=org.osgi.framework; version=1.7.0, org.osgi.framework.hooks.bundle; version=1.1.0, org.osgi.framework.hooks.resolver; version=1.0.0, org.osgi.framework.hooks.service; version=1.1.0, org.osgi.framework.hooks.weaving; version=1.0.0, org.osgi.framework.launch; version=1.1.0, org.osgi.framework.namespace; version=1.0.0, org.osgi.framework.startlevel; version=1.0.0, org.osgi.framework.wiring; version=1.1.0, org.osgi.resource; version=1.0.0, org.osgi.service.packageadmin; version=1.2.0, org.osgi.service.startlevel; version=1.1.0, org.osgi.service.url; version=1.0.0, org.osgi.util.tracker; version=1.5.1, javax.accessibility;uses:="javax.swing.text";version="0.0.0.1_007_JavaSE", javax.activation;version="0.0.0.1_007_JavaSE", javax.activity;version="0.0.0.1_007_JavaSE", javax.annotation.processing;uses:="javax.tools,javax.lang.model,javax.lang.model.element,javax.lang.model.util";version="0.0.0.1_007_JavaSE", javax.annotation;versio |
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
# | |
# A fatal error has been detected by the Java Runtime Environment: | |
# | |
# SIGBUS (0xa) at pc=0x000000010a8160d0, pid=33423, tid=22531 | |
# | |
# JRE version: 7.0_25-b15 | |
# Java VM: Java HotSpot(TM) 64-Bit Server VM (23.25-b01 mixed mode bsd-amd64 compressed oops) | |
# Problematic frame: | |
# C [libzip.dylib+0x30d0] newEntry+0x154 | |
# |
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
MavenPluginFacet mavenPluginFacet = getProject().getFacet(MavenPluginFacet.class); | |
int nrOfPlugins = getNumberOfPlugins(); | |
MavenPluginBuilder plugin = MavenPluginBuilder.create() | |
.setDependency( | |
DependencyBuilder.create() | |
.setGroupId("org.apache.maven.plugins") | |
.setArtifactId("maven-site-plugin") | |
.setVersion("3.0") | |
); |
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
[ERROR] Failed to execute goal on project t3: Could not resolve dependencies for project demo:t3:war:1.0.0-SNAPSHOT: Failed to collect dependencies for [junit:junit:jar:4.9 (test), org.jboss.arquillian.junit:arquillian-junit-container:jar:1.0.0.Final-SNAPSHOT (test), org.jboss.arquillian.container:arquillian-jbossas-managed-6:jar:1.0.0.Final-SNAPSHOT (test), org.jboss.jbossas:jboss-server-manager:jar:1.0.3.GA (test), org.jboss.jbossas:jboss-as-client:pom:6.0.0.Final (test)]: Failed to read artifact descriptor for trove:trove:jar:2.1.1: Could not transfer artifact trove:trove:pom:2.1.1 from/to jboss (http://repository.jboss.org/maven2): Access denied to: http://repository.jboss.org/maven2/trove/trove/2.1.1/trove-2.1.1.pom -> [Help 1] | |