Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

93
Vistas
How can i seed my database with datas from a graphql?

I have retrieve datas from an API (https://anilist.gitbook.io/anilist-apiv2-docs/). I wanted to know if it was possible to seed the datas that I have retrieved to a database as PostgreSQL, maybe through an ORM but I don't figure how. And if you have the answer and willing to guide me I'll appreciate.

Here is how I retrieved the datas:

import { useQuery, gql } from "@apollo/client";
import { QUERY } from "../graphql/schema";

export default function AnimList() {
  const { data, loading, error } = useQuery(QUERY);
  if (loading) {
    return <h2>Loading...</h2>;
  }
  if (error) {
    console.error(error);
    return null;
  }

  const medias = data.Page.media;

  return (
    <div className="mainGrid">
      <h1>Hello World</h1>
        {medias.map((value) => {
      return (
        <div key={value.id} className="card">
        <img src={value.coverImage.medium} alt="placeholder" />
          <p>{value.title.userPreferred} </p>
        </div>
        )
    })}

    </div>
    );
}

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda