src/main/java/com/conveyal/gtfs/graphql/fetchers/JDBCFetcher.java
public static GraphQLFieldDefinition field (String tableName) {
        return newFieldDefinition()
                .name(tableName)
                .type(new GraphQLList(GraphQLGtfsSchema.routeType))
                .argument(stringArg("namespace"))
                .argument(multiStringArg("route_id"))
                .dataFetcher(new JDBCFetcher(tableName, null))
                .build();
    }
public static GraphQLFieldDefinition field (String tableName) {
        return newFieldDefinition()
                .name(tableName)
                .type(new GraphQLList(GraphQLGtfsSchema.routeType))
                .argument(stringArg("namespace"))
                .argument(multiStringArg("route_id"))
                .dataFetcher(new JDBCFetcher(tableName, null))
                .build();
    }
public static GraphQLFieldDefinition field ( String tableName ) { return newFieldDefinition ( ) . name ( tableName ) . type ( new GraphQLList ( GraphQLGtfsSchema . routeType ) ) . argument ( stringArg ( "namespace" ) ) . argument ( multiStringArg ( "route_id" ) ) . dataFetcher ( new JDBCFetcher ( tableName , null ) ) . build ( ) ; }
Still maybe we could make the most basic ones this way (automatically). Keeping this function as an example.
Still maybe we could make the most basic ones this way ( automatically ) . Keeping this function as an example .