Skip to content

Instantly share code, notes, and snippets.

View JJediny's full-sized avatar

John Jediny JJediny

View GitHub Profile

@CONTEXT.md based on this file create a sonnet poem about this project

john@john-System-Product-Name:~/json-schema-x-graphql$ ollama list
NAME                        ID              SIZE      MODIFIED
qwen3.5:9b                  6488c96fa5fa    6.6 GB    46 minutes ago
gemma4:latest               c6eb396dbd59    9.6 GB    50 minutes ago
codestral:latest            0898a8b286d5    12 GB     7 weeks ago
glm-ocr:latest              6effedd0dc8a    2.2 GB    7 weeks ago
gemma3:12b                  f4031aab637d    8.1 GB    7 weeks ago

Canonical JSON schema bidirectionally generate GraphQL SDL

presents several fundamental pain points rooted in the structural and semantic differences between these two schema languages.[1]

Type System Mismatches

The most significant challenge stems from impedance mismatch between JSON Schema and GraphQL's type systems. GraphQL SDL uses a hierarchical graph-based type system designed for tree-structured JSON responses, while JSON Schema follows a validation-oriented model. GraphQL represents wrapping types (lists and non-nullability) through variable levels of nesting, which doesn't map cleanly to JSON Schema's constraint-based validation patterns. This makes round-trip conversion particularly difficult since you must decide how to represent GraphQL's recursive type references in JSON's standardized shape.[2][3][1]

Directive and Annotation Loss

A Concise Guide to GraphQL Federation Directives

GraphQL Federation allows you to build a single, unified data graph by combining multiple backend services (subgraphs). The gateway intelligently plans and executes queries across these services. This guide covers the core directives and concepts that make it work.

We'll use a simple e-commerce example with three subgraphs:

  • Users Service: Manages user data (id, name).
  • Products Service: Manages product data (upc, price, name).
  • Reviews Service: Manages reviews, which are linked to users and products.

Of course! Here is a detailed cheatsheet for the advanced parameters shown in your image. I've explained what each one does, when you should adjust it, and what kind of prompts or desired outputs would benefit most from tuning.


LLM Fine-Tuning Parameters Cheatsheet

This cheatsheet helps you understand and tune advanced parameters to control the output of a Large Language Model (LLM). The key is balancing coherence (makes sense, factual, predictable) with creativity (novel, diverse, unexpected).

Core Concepts: Sampling

@JJediny
JJediny / assume_root_credentials.sh
Created July 9, 2025 19:58 — forked from sebsto/assume_root_credentials.sh
Assume Root on AWS member accounts
#!/bin/bash
AWS_ACCOUNT_ID=012345678901
# Check if jq is installed
if ! command -v jq &> /dev/null; then
echo "Error: jq is not installed. Please install jq to parse JSON."
exit 1
fi
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
serve:
fork:
port:
exampleQuery:
cors:
origin:
allowedHeaders:
-
exposedHeaders:
-
using System;
#region Archer WebAPI Objects
public static class Application
{
/// <summary>
/// Agency System Inventory
/// </summary>
public static readonly Guid Agency_System_Inventory = new Guid("fbfbbd59-e993-46e6-8f31-64fe1cd0d92e");
public static class Fields
{
@JJediny
JJediny / deadmalls.com.geojson
Last active May 23, 2020 05:05
deadmalls.com scrape of entries as of 4/22/20 - using google maps geocoding api for results
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.