query_id stringlengths 32 32 | query stringlengths 7 6.75k | positive_passages listlengths 1 1 | negative_passages listlengths 88 101 |
|---|---|---|---|
12aadcd280535540887ab54d7e7f0a77 | Arguments changed from camelCase to snake_case in GraphQL v1.10, and GraphQL::Schema.from_definition does not allow changing this default. This normalizes all arguments into HashWithIndifferentAccess structures with (optionally) camelized keys for backwards compatibility with existing apps. | [
{
"docid": "e97754b289a4497fe86812d7686e72b4",
"score": "0.6779208",
"text": "def format_args(args)\n input = args.to_h.transform_values do |value|\n next value.to_h if value.is_a?(GraphQL::Schema::InputObject)\n next value.map { |v| v.is_a?(GraphQL::Schema::InputObject) ? v.to_... | [
{
"docid": "3ba06f870e8b1959e04f114a554758f1",
"score": "0.6000669",
"text": "def normalize(hash)\n hash.symbolize_keys if hash\n end",
"title": ""
},
{
"docid": "960eb4cb92a5236ad6cb3b3c7f214ad7",
"score": "0.58467156",
"text": "def normalize_args(string, options_hash); ... |
b75faa4f5e0fcf08fb8db6412a435113 | GET /worksheets/new GET /worksheets/new.json | [
{
"docid": "a57c1df63dd1421a7120f9d09e0ca7bc",
"score": "0.7854272",
"text": "def new\n @worksheet = Worksheet.new\n\n respond_to do |format|\n format.html # new.html.erb\n format.json { render json: @worksheet }\n end\n end",
"title": ""
}
] | [
{
"docid": "3af82dc4002790cf2399ac8a65c5c8ad",
"score": "0.77463704",
"text": "def new\n @spreadsheet = @package.spreadsheets.new\n\n respond_to do |format|\n format.html # new.html.erb\n format.json { render json: @spreadsheet }\n end\n end",
"title": ""
},
{
"docid": "7... |
34241605a43189d9f91f367d50232077 | POST /faafacilities POST /faafacilities.json | [
{
"docid": "3baf4aa4ec7722fa76791ba0ad7e8a90",
"score": "0.6800668",
"text": "def create\n @faafacility = Faafacility.new(params[:faafacility])\n\n respond_to do |format|\n if @faafacility.save\n format.html { redirect_to @faafacility, notice: 'Faafacility was successfully created.' }\... | [
{
"docid": "d907a53f73e255db227e72cd3a8bb5c9",
"score": "0.60765636",
"text": "def create\n @faculties = Faculty.create!(faculty_params)\n json_response(@faculties, :created)\n end",
"title": ""
},
{
"docid": "b50e52ccacece5da0ac5dcd884e2b58e",
"score": "0.60248834",
"text": "... |