skip to Main Content

Json – Struggling with a MongoDB YouTube tutorial

const express = require('express'); const bodyParser = require('body-parser'); const graphqlHttp = require('express-graphql'); const { buildSchema } = require('graphql'); const app = express(); app.use(bodyParser.json()); app.use( '/graphql', graphqlHttp({ schema: buildSchema(` type RootQuery { events: [String!]! } type RootMutation { createEvent(name: String): String…

VIEW QUESTION

Getting an element in JSON-response using .check

My code (Java) for my Gatling test is as follows: package computerdatabase; import io.gatling.javaapi.core.ScenarioBuilder; import io.gatling.javaapi.core.Simulation; import io.gatling.javaapi.http.HttpProtocolBuilder; import java.time.Duration; import static io.gatling.javaapi.core.CoreDsl.*; import static io.gatling.javaapi.http.HttpDsl.http; import static io.gatling.javaapi.http.HttpDsl.status; public class ProductSimulation extends Simulation { HttpProtocolBuilder httpProtocol = http.baseUrl("https://dummyjson.com") .header("Content-Type",…

VIEW QUESTION
Back To Top
Search